rust/tests/ui/resolve/issue-6642.rs
2023-08-28 17:47:37 -03:00

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() {}