1 error[E0597]: `counter` does not live long enough
2 --> $DIR/issue-54556-niconii.rs:22:20
4 LL | if let Ok(_) = counter.lock() { }
5 | ^^^^^^^ borrowed value does not live long enough
8 | - `counter` dropped here while still borrowed
10 = note: values in a scope are dropped in the opposite order they are created
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0597`.