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