1 2 3 4 5 6 7 8 9
struct A; impl A { fn m(&self) { fn x() { self.m() //~ ERROR can't capture dynamic environment in a fn item } } } fn main() {}