Skip to content

Commit

Permalink
Fix E0741 error code explanation
Browse files Browse the repository at this point in the history
Use OK ! like other explanations
  • Loading branch information
rubenrua authored Aug 12, 2020
1 parent ef1d58e commit b38e571
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/librustc_error_codes/error_codes/E0477.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
Expand Down

0 comments on commit b38e571

Please sign in to comment.