rust/tests/ui/resolve/issue-6642.rs

10 lines
163 B
Rust

struct A;
impl A {
fn m(&self) {
fn x() {
self.m() //~ ERROR can't capture dynamic environment in a fn item
}
}
}
fn main() {}