Skip to content

Commit b38e571

Browse files
authored
Fix E0741 error code explanation
Use OK ! like other explanations
1 parent ef1d58e commit b38e571

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)