]> git.proxmox.com Git - rustc.git/blob - vendor/pin-project-lite/tests/ui/pin_project/overlapping_lifetime_names.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / pin-project-lite / tests / ui / pin_project / overlapping_lifetime_names.stderr
1 error[E0263]: lifetime name `'__pin` declared twice in the same scope
2 --> tests/ui/pin_project/overlapping_lifetime_names.rs:4:20
3 |
4 3 | / pin_project! { //~ ERROR E0263,E0496
5 4 | | pub struct Foo<'__pin, T> {
6 | | ^^^^^^ declared twice
7 5 | | #[pin]
8 6 | | field: &'__pin mut T,
9 7 | | }
10 8 | | }
11 | |_- previous declaration here
12
13 error[E0263]: lifetime name `'__pin` declared twice in the same scope
14 --> tests/ui/pin_project/overlapping_lifetime_names.rs:4:20
15 |
16 3 | / pin_project! { //~ ERROR E0263,E0496
17 4 | | pub struct Foo<'__pin, T> {
18 | | ^^^^^^ declared twice
19 5 | | #[pin]
20 6 | | field: &'__pin mut T,
21 7 | | }
22 8 | | }
23 | |_- previous declaration here
24
25 error[E0263]: lifetime name `'__pin` declared twice in the same scope
26 --> tests/ui/pin_project/overlapping_lifetime_names.rs:4:20
27 |
28 3 | / pin_project! { //~ ERROR E0263,E0496
29 4 | | pub struct Foo<'__pin, T> {
30 | | ^^^^^^ declared twice
31 5 | | #[pin]
32 6 | | field: &'__pin mut T,
33 7 | | }
34 8 | | }
35 | |_- previous declaration here
36
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
39 |
40 3 | / pin_project! { //~ ERROR E0263,E0496
41 4 | | pub struct Foo<'__pin, T> {
42 | | ------ first declared here
43 5 | | #[pin]
44 6 | | field: &'__pin mut T,
45 7 | | }
46 8 | | }
47 | |_^ lifetime `'__pin` already in scope
48 |
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)
50
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
53 |
54 3 | / pin_project! { //~ ERROR E0263,E0496
55 4 | | pub struct Foo<'__pin, T> {
56 | | ------ first declared here
57 5 | | #[pin]
58 6 | | field: &'__pin mut T,
59 7 | | }
60 8 | | }
61 | |_^ lifetime `'__pin` already in scope
62 |
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)
64
65 error[E0263]: lifetime name `'__pin` declared twice in the same scope
66 --> tests/ui/pin_project/overlapping_lifetime_names.rs:4:20
67 |
68 3 | / pin_project! { //~ ERROR E0263,E0496
69 4 | | pub struct Foo<'__pin, T> {
70 | | ^^^^^^ declared twice
71 5 | | #[pin]
72 6 | | field: &'__pin mut T,
73 7 | | }
74 8 | | }
75 | |_- previous declaration here