Rollup merge of - 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:
Tyler Mandry 2020-08-13 18:00:17 -07:00 committed by GitHub
commit b4966a8936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
});
}