1
Fork 0
rust/tests/ui/resolve/issue-6642.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
163 B
Rust
Raw Normal View History

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