]> git.proxmox.com Git - rustc.git/blame - tests/ui/resolve/issue-6642.rs
New upstream version 1.74.1+dfsg1
[rustc.git] / tests / ui / resolve / issue-6642.rs
CommitLineData
1a4d82fc
JJ
1struct A;
2impl A {
3 fn m(&self) {
4 fn x() {
5 self.m() //~ ERROR can't capture dynamic environment in a fn item
1a4d82fc 6 }
223e47cc
LB
7 }
8}
223e47cc 9fn main() {}