Skip to content

Commit b4966a8

Browse files
authored
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.
2 parents 84f7991 + b38e571 commit b4966a8

File tree

1 file changed

+1
-2
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+1
-2
lines changed

src/librustc_error_codes/error_codes/E0477.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ fn i_want_static_closure<F>(a: F)
3737
3838
fn print_string(s: Mutex<MyString<'static>>) {
3939
40-
i_want_static_closure(move || { // error: this closure has lifetime 'a
41-
// rather than 'static
40+
i_want_static_closure(move || { // ok!
4241
println!("{}", s.lock().unwrap().data);
4342
});
4443
}

0 commit comments

Comments
 (0)