Fix E0741 error code explanation
Use OK ! like other explanations
This commit is contained in:
parent
ef1d58e7c9
commit
b38e571e9c
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue