summaryrefslogtreecommitdiffstats
path: root/tests/ui/regions/regions-in-structs.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/regions/regions-in-structs.stderr')
-rw-r--r--tests/ui/regions/regions-in-structs.stderr20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/regions/regions-in-structs.stderr b/tests/ui/regions/regions-in-structs.stderr
new file mode 100644
index 000000000..5dfdc2ee9
--- /dev/null
+++ b/tests/ui/regions/regions-in-structs.stderr
@@ -0,0 +1,20 @@
+error[E0261]: use of undeclared lifetime name `'a`
+ --> $DIR/regions-in-structs.rs:10:9
+ |
+LL | struct StructDecl {
+ | - help: consider introducing lifetime `'a` here: `<'a>`
+LL | a: &'a isize,
+ | ^^ undeclared lifetime
+
+error[E0261]: use of undeclared lifetime name `'a`
+ --> $DIR/regions-in-structs.rs:11:9
+ |
+LL | struct StructDecl {
+ | - help: consider introducing lifetime `'a` here: `<'a>`
+LL | a: &'a isize,
+LL | b: &'a isize,
+ | ^^ undeclared lifetime
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0261`.