We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef1d58e commit b38e571Copy full SHA for b38e571
src/librustc_error_codes/error_codes/E0477.md
@@ -37,8 +37,7 @@ fn i_want_static_closure<F>(a: F)
37
38
fn print_string(s: Mutex<MyString<'static>>) {
39
40
- i_want_static_closure(move || { // error: this closure has lifetime 'a
41
- // rather than 'static
+ i_want_static_closure(move || { // ok!
42
println!("{}", s.lock().unwrap().data);
43
});
44
}
0 commit comments