about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRuben Gonzalez <rubenrua@gmail.com>2020-08-12 23:42:10 +0200
committerGitHub <noreply@github.com>2020-08-12 23:42:10 +0200
commitb38e571e9cdfa0e98d10c959117ed8e3e7bd280d (patch)
treea6ba2ee85c6651973e69beed49cc7161f2dfb6af
parentef1d58e7c90aa9885c906a6eb7398a2b6256d075 (diff)
downloadrust-b38e571e9cdfa0e98d10c959117ed8e3e7bd280d.tar.gz
rust-b38e571e9cdfa0e98d10c959117ed8e3e7bd280d.zip
Fix E0741 error code explanation
Use OK ! like other explanations
-rw-r--r--src/librustc_error_codes/error_codes/E0477.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librustc_error_codes/error_codes/E0477.md b/src/librustc_error_codes/error_codes/E0477.md
index 794456451ef..9cfefb1de63 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<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);
     });
 }