]> git.proxmox.com Git - rustc.git/blob - src/test/ui/nll/issue-54556-niconii.stderr
Update upstream source from tag 'upstream/1.31.0_beta.4+dfsg1'
[rustc.git] / src / test / ui / nll / issue-54556-niconii.stderr
1 error[E0597]: `counter` does not live long enough
2 --> $DIR/issue-54556-niconii.rs:22:20
3 |
4 LL | if let Ok(_) = counter.lock() { }
5 | ^^^^^^^ borrowed value does not live long enough
6 ...
7 LL | }
8 | - `counter` dropped here while still borrowed
9 |
10 = note: values in a scope are dropped in the opposite order they are created
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0597`.