1 error[E0263]: lifetime name `'__pin` declared twice in the same scope
2 --> tests/ui/pin_project/overlapping_lifetime_names.rs:4:20
4 3 | / pin_project! { //~ ERROR E0263,E0496
5 4 | | pub struct Foo<'__pin, T> {
6 | | ^^^^^^ declared twice
8 6 | | field: &'__pin mut T,
11 | |_- previous declaration here
13 error[E0263]: lifetime name `'__pin` declared twice in the same scope
14 --> tests/ui/pin_project/overlapping_lifetime_names.rs:4:20
16 3 | / pin_project! { //~ ERROR E0263,E0496
17 4 | | pub struct Foo<'__pin, T> {
18 | | ^^^^^^ declared twice
20 6 | | field: &'__pin mut T,
23 | |_- previous declaration here
25 error[E0263]: lifetime name `'__pin` declared twice in the same scope
26 --> tests/ui/pin_project/overlapping_lifetime_names.rs:4:20
28 3 | / pin_project! { //~ ERROR E0263,E0496
29 4 | | pub struct Foo<'__pin, T> {
30 | | ^^^^^^ declared twice
32 6 | | field: &'__pin mut T,
35 | |_- previous declaration here
37 error[E0496]: lifetime name `'__pin` shadows a lifetime name that is already in scope
38 --> tests/ui/pin_project/overlapping_lifetime_names.rs:3:1
40 3 | / pin_project! { //~ ERROR E0263,E0496
41 4 | | pub struct Foo<'__pin, T> {
42 | | ------ first declared here
44 6 | | field: &'__pin mut T,
47 | |_^ lifetime `'__pin` already in scope
49 = note: this error originates in the macro `$crate::__pin_project_struct_make_proj_method` (in Nightly builds, run with -Z macro-backtrace for more info)
51 error[E0496]: lifetime name `'__pin` shadows a lifetime name that is already in scope
52 --> tests/ui/pin_project/overlapping_lifetime_names.rs:3:1
54 3 | / pin_project! { //~ ERROR E0263,E0496
55 4 | | pub struct Foo<'__pin, T> {
56 | | ------ first declared here
58 6 | | field: &'__pin mut T,
61 | |_^ lifetime `'__pin` already in scope
63 = note: this error originates in the macro `$crate::__pin_project_struct_make_proj_method` (in Nightly builds, run with -Z macro-backtrace for more info)
65 error[E0263]: lifetime name `'__pin` declared twice in the same scope
66 --> tests/ui/pin_project/overlapping_lifetime_names.rs:4:20
68 3 | / pin_project! { //~ ERROR E0263,E0496
69 4 | | pub struct Foo<'__pin, T> {
70 | | ^^^^^^ declared twice
72 6 | | field: &'__pin mut T,
75 | |_- previous declaration here