]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-6642.rs
Auto merge of #106827 - alexcrichton:update-llvm-to-15.0.7, r=cuviper
[rust.git] / tests / ui / issues / issue-6642.rs
1 struct A;
2 impl A {
3     fn m(&self) {
4         fn x() {
5             self.m() //~ ERROR can't capture dynamic environment in a fn item
6         }
7     }
8 }
9 fn main() {}