about summary refs log tree commit diff
path: root/tests/ui/closures/issue-52437.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/closures/issue-52437.rs')
-rw-r--r--tests/ui/closures/issue-52437.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/closures/issue-52437.rs b/tests/ui/closures/issue-52437.rs
index 6ac5380a5aa..98b04d179af 100644
--- a/tests/ui/closures/issue-52437.rs
+++ b/tests/ui/closures/issue-52437.rs
@@ -1,5 +1,5 @@
 fn main() {
     [(); &(&'static: loop { |x| {}; }) as *const _ as usize]
-    //~^ ERROR: invalid label name `'static`
+    //~^ ERROR: labels cannot use keyword names
     //~| ERROR: type annotations needed
 }