]> git.proxmox.com Git - rustc.git/blobdiff - vendor/pin-project-lite/tests/ui/pin_project/overlapping_lifetime_names.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / vendor / pin-project-lite / tests / ui / pin_project / overlapping_lifetime_names.stderr
diff --git a/vendor/pin-project-lite/tests/ui/pin_project/overlapping_lifetime_names.stderr b/vendor/pin-project-lite/tests/ui/pin_project/overlapping_lifetime_names.stderr
new file mode 100644 (file)
index 0000000..8a9bb4f
--- /dev/null
@@ -0,0 +1,75 @@
+error[E0496]: lifetime name `'__pin` shadows a lifetime name that is already in scope
+ --> $DIR/overlapping_lifetime_names.rs:3:1
+  |
+3 | / pin_project! { //~ ERROR E0496
+4 | |     pub struct Foo<'__pin, T> { //~ ERROR E0263
+  | |                    ------ first declared here
+5 | |         #[pin]
+6 | |         field: &'__pin mut T,
+7 | |     }
+8 | | }
+  | |_^ lifetime `'__pin` already in scope
+  |
+  = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error[E0496]: lifetime name `'__pin` shadows a lifetime name that is already in scope
+ --> $DIR/overlapping_lifetime_names.rs:3:1
+  |
+3 | / pin_project! { //~ ERROR E0496
+4 | |     pub struct Foo<'__pin, T> { //~ ERROR E0263
+  | |                    ------ first declared here
+5 | |         #[pin]
+6 | |         field: &'__pin mut T,
+7 | |     }
+8 | | }
+  | |_^ lifetime `'__pin` already in scope
+  |
+  = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error[E0263]: lifetime name `'__pin` declared twice in the same scope
+ --> $DIR/overlapping_lifetime_names.rs:4:20
+  |
+3 | / pin_project! { //~ ERROR E0496
+4 | |     pub struct Foo<'__pin, T> { //~ ERROR E0263
+  | |                    ^^^^^^ declared twice
+5 | |         #[pin]
+6 | |         field: &'__pin mut T,
+7 | |     }
+8 | | }
+  | |_- previous declaration here
+
+error[E0263]: lifetime name `'__pin` declared twice in the same scope
+ --> $DIR/overlapping_lifetime_names.rs:4:20
+  |
+3 | / pin_project! { //~ ERROR E0496
+4 | |     pub struct Foo<'__pin, T> { //~ ERROR E0263
+  | |                    ^^^^^^ declared twice
+5 | |         #[pin]
+6 | |         field: &'__pin mut T,
+7 | |     }
+8 | | }
+  | |_- previous declaration here
+
+error[E0263]: lifetime name `'__pin` declared twice in the same scope
+ --> $DIR/overlapping_lifetime_names.rs:4:20
+  |
+3 | / pin_project! { //~ ERROR E0496
+4 | |     pub struct Foo<'__pin, T> { //~ ERROR E0263
+  | |                    ^^^^^^ declared twice
+5 | |         #[pin]
+6 | |         field: &'__pin mut T,
+7 | |     }
+8 | | }
+  | |_- previous declaration here
+
+error[E0263]: lifetime name `'__pin` declared twice in the same scope
+ --> $DIR/overlapping_lifetime_names.rs:4:20
+  |
+3 | / pin_project! { //~ ERROR E0496
+4 | |     pub struct Foo<'__pin, T> { //~ ERROR E0263
+  | |                    ^^^^^^ declared twice
+5 | |         #[pin]
+6 | |         field: &'__pin mut T,
+7 | |     }
+8 | | }
+  | |_- previous declaration here