• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1error[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:4:20
3  |
43 | / pin_project! { //~ ERROR E0263,E0496
54 | |     pub struct Foo<'__pin, T> {
6  | |                    ^^^^^^ already used
75 | |         #[pin]
86 | |         field: &'__pin mut T,
97 | |     }
108 | | }
11  | |_- first use of `'__pin`
12
13error[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:4:20
15  |
163 | / pin_project! { //~ ERROR E0263,E0496
174 | |     pub struct Foo<'__pin, T> {
18  | |                    ^^^^^^ already used
195 | |         #[pin]
206 | |         field: &'__pin mut T,
217 | |     }
228 | | }
23  | |_- first use of `'__pin`
24
25error[E0496]: lifetime name `'__pin` shadows a lifetime name that is already in scope
26 --> tests/ui/pin_project/overlapping_lifetime_names.rs:3:1
27  |
283 | / pin_project! { //~ ERROR E0263,E0496
294 | |     pub struct Foo<'__pin, T> {
30  | |                    ------ first declared here
315 | |         #[pin]
326 | |         field: &'__pin mut T,
337 | |     }
348 | | }
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
39error[E0496]: lifetime name `'__pin` shadows a lifetime name that is already in scope
40 --> tests/ui/pin_project/overlapping_lifetime_names.rs:3:1
41  |
423 | / pin_project! { //~ ERROR E0263,E0496
434 | |     pub struct Foo<'__pin, T> {
44  | |                    ------ first declared here
455 | |         #[pin]
466 | |         field: &'__pin mut T,
477 | |     }
488 | | }
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
53error[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:4:20
55  |
563 | / pin_project! { //~ ERROR E0263,E0496
574 | |     pub struct Foo<'__pin, T> {
58  | |                    ^^^^^^ already used
595 | |         #[pin]
606 | |         field: &'__pin mut T,
617 | |     }
628 | | }
63  | |_- first use of `'__pin`
64
65error[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:4:20
67  |
683 | / pin_project! { //~ ERROR E0263,E0496
694 | |     pub struct Foo<'__pin, T> {
70  | |                    ^^^^^^ already used
715 | |         #[pin]
726 | |         field: &'__pin mut T,
737 | |     }
748 | | }
75  | |_- first use of `'__pin`
76