rust/src/test/ui/issues/issue-6642.rs
2018-12-25 21:08:33 -07: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() {}