| 1 |
error[E0403]: the name `'__pin` is already used for a generic parameter in this item's generic parameters |
| 2 |
--> tests/ui/pin_project/overlapping_lifetime_names.rs:6:20 |
| 3 |
| |
| 4 |
5 | / pin_project! { //~ ERROR E0263,E0496 |
| 5 |
6 | | pub struct Foo<'__pin, T> { |
| 6 |
| | ^^^^^^ already used |
| 7 |
7 | | #[pin] |
| 8 |
8 | | field: &'__pin mut T, |
| 9 |
9 | | } |
| 10 |
10 | | } |
| 11 |
| |_- first use of `'__pin` |
| 12 |
|
| 13 |
error[E0403]: the name `'__pin` is already used for a generic parameter in this item's generic parameters |
| 14 |
--> tests/ui/pin_project/overlapping_lifetime_names.rs:6:20 |
| 15 |
| |
| 16 |
5 | / pin_project! { //~ ERROR E0263,E0496 |
| 17 |
6 | | pub struct Foo<'__pin, T> { |
| 18 |
| | ^^^^^^ already used |
| 19 |
7 | | #[pin] |
| 20 |
8 | | field: &'__pin mut T, |
| 21 |
9 | | } |
| 22 |
10 | | } |
| 23 |
| |_- first use of `'__pin` |
| 24 |
|
| 25 |
error[E0496]: lifetime name `'__pin` shadows a lifetime name that is already in scope |
| 26 |
--> tests/ui/pin_project/overlapping_lifetime_names.rs:5:1 |
| 27 |
| |
| 28 |
5 | / pin_project! { //~ ERROR E0263,E0496 |
| 29 |
6 | | pub struct Foo<'__pin, T> { |
| 30 |
| | ------ first declared here |
| 31 |
7 | | #[pin] |
| 32 |
8 | | field: &'__pin mut T, |
| 33 |
9 | | } |
| 34 |
10 | | } |
| 35 |
| |_^ lifetime `'__pin` already in scope |
| 36 |
| |
| 37 |
= note: this error originates in the macro `$crate::__pin_project_struct_make_proj_method` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 38 |
|
| 39 |
error[E0496]: lifetime name `'__pin` shadows a lifetime name that is already in scope |
| 40 |
--> tests/ui/pin_project/overlapping_lifetime_names.rs:5:1 |
| 41 |
| |
| 42 |
5 | / pin_project! { //~ ERROR E0263,E0496 |
| 43 |
6 | | pub struct Foo<'__pin, T> { |
| 44 |
| | ------ first declared here |
| 45 |
7 | | #[pin] |
| 46 |
8 | | field: &'__pin mut T, |
| 47 |
9 | | } |
| 48 |
10 | | } |
| 49 |
| |_^ lifetime `'__pin` already in scope |
| 50 |
| |
| 51 |
= note: this error originates in the macro `$crate::__pin_project_struct_make_proj_method` which comes from the expansion of the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info) |
| 52 |
|
| 53 |
error[E0403]: the name `'__pin` is already used for a generic parameter in this item's generic parameters |
| 54 |
--> tests/ui/pin_project/overlapping_lifetime_names.rs:6:20 |
| 55 |
| |
| 56 |
5 | / pin_project! { //~ ERROR E0263,E0496 |
| 57 |
6 | | pub struct Foo<'__pin, T> { |
| 58 |
| | ^^^^^^ already used |
| 59 |
7 | | #[pin] |
| 60 |
8 | | field: &'__pin mut T, |
| 61 |
9 | | } |
| 62 |
10 | | } |
| 63 |
| |_- first use of `'__pin` |
| 64 |
|
| 65 |
error[E0403]: the name `'__pin` is already used for a generic parameter in this item's generic parameters |
| 66 |
--> tests/ui/pin_project/overlapping_lifetime_names.rs:6:20 |
| 67 |
| |
| 68 |
5 | / pin_project! { //~ ERROR E0263,E0496 |
| 69 |
6 | | pub struct Foo<'__pin, T> { |
| 70 |
| | ^^^^^^ already used |
| 71 |
7 | | #[pin] |
| 72 |
8 | | field: &'__pin mut T, |
| 73 |
9 | | } |
| 74 |
10 | | } |
| 75 |
| |_- first use of `'__pin` |