summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-6642.rs
blob: f80f6fffe89f8f30f3d52b076bdbee2c54f76016 (plain)
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() {}