Rollup merge of #75467 - rubenrua:rubenrua-patch-E0477, r=oli-obk
Fix E0741 error code explanation Using `ok !` into fixed SRC like in other explanations.
This commit is contained in:
commit
b4966a8936
@ -37,8 +37,7 @@ fn i_want_static_closure<F>(a: F)
|
||||
|
||||
fn print_string(s: Mutex<MyString<'static>>) {
|
||||
|
||||
i_want_static_closure(move || { // error: this closure has lifetime 'a
|
||||
// rather than 'static
|
||||
i_want_static_closure(move || { // ok!
|
||||
println!("{}", s.lock().unwrap().data);
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user