Skip to content

Commit

Permalink
Rollup merge of #75467 - rubenrua:rubenrua-patch-E0477, r=oli-obk
Browse files Browse the repository at this point in the history
Fix E0741 error code explanation

Using `ok !` into fixed SRC like in other explanations.
  • Loading branch information
tmandry authored Aug 14, 2020
2 parents 84f7991 + b38e571 commit b4966a8
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 b4966a8

Please sign in to comment.