about summary refs log tree commit diff
path: root/src/librustc_error_codes
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2020-08-13 18:00:17 -0700
committerGitHub <noreply@github.com>2020-08-13 18:00:17 -0700
commitb4966a8936be55bc2d95aa134127daae58cd47bf (patch)
tree35ffa576ea7becef2f2f82bbb07b442c12948ec7 /src/librustc_error_codes
parent84f7991bf4152f4f17f5a5f30405220bf9513a4b (diff)
parentb38e571e9cdfa0e98d10c959117ed8e3e7bd280d (diff)
downloadrust-b4966a8936be55bc2d95aa134127daae58cd47bf.tar.gz
rust-b4966a8936be55bc2d95aa134127daae58cd47bf.zip
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.
Diffstat (limited to 'src/librustc_error_codes')
-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);
     });
 }