From b38e571e9cdfa0e98d10c959117ed8e3e7bd280d Mon Sep 17 00:00:00 2001 From: Ruben Gonzalez Date: Wed, 12 Aug 2020 23:42:10 +0200 Subject: [PATCH] Fix E0741 error code explanation Use OK ! like other explanations --- src/librustc_error_codes/error_codes/E0477.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/librustc_error_codes/error_codes/E0477.md b/src/librustc_error_codes/error_codes/E0477.md index 794456451ef33..9cfefb1de632b 100644 --- a/src/librustc_error_codes/error_codes/E0477.md +++ b/src/librustc_error_codes/error_codes/E0477.md @@ -37,8 +37,7 @@ fn i_want_static_closure(a: F) fn print_string(s: Mutex>) { - 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); }); }