summaryrefslogtreecommitdiffstats
path: root/tests/ui/regions/regions-name-static.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/regions/regions-name-static.stderr')
-rw-r--r--tests/ui/regions/regions-name-static.stderr9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/regions/regions-name-static.stderr b/tests/ui/regions/regions-name-static.stderr
new file mode 100644
index 000000000..4b7026e65
--- /dev/null
+++ b/tests/ui/regions/regions-name-static.stderr
@@ -0,0 +1,9 @@
+error[E0262]: invalid lifetime parameter name: `'static`
+ --> $DIR/regions-name-static.rs:1:12
+ |
+LL | struct Foo<'static> {
+ | ^^^^^^^ 'static is a reserved lifetime name
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0262`.