summaryrefslogtreecommitdiffstats
path: root/src/test/ui/regions/regions-in-structs.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/regions/regions-in-structs.stderr')
-rw-r--r--src/test/ui/regions/regions-in-structs.stderr20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test/ui/regions/regions-in-structs.stderr b/src/test/ui/regions/regions-in-structs.stderr
new file mode 100644
index 000000000..5dfdc2ee9
--- /dev/null
+++ b/src/test/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`.