]> git.proxmox.com Git - rustc.git/blob - vendor/pin-project-lite/tests/ui/pin_project/invalid-bounds.stderr
New upstream version 1.52.0~beta.3+dfsg1
[rustc.git] / vendor / pin-project-lite / tests / ui / pin_project / invalid-bounds.stderr
1 error: no rules expected the token `[`
2 --> $DIR/invalid-bounds.rs:3:1
3 |
4 3 | / pin_project! {
5 4 | | struct Generics1<T: 'static : Sized> { //~ ERROR no rules expected the token `:`
6 5 | | field: T,
7 6 | | }
8 7 | | }
9 | |_^ no rules expected this token in macro call
10 |
11 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
12
13 error: no rules expected the token `[`
14 --> $DIR/invalid-bounds.rs:9:1
15 |
16 9 | / pin_project! {
17 10 | | struct Generics2<T: 'static : ?Sized> { //~ ERROR no rules expected the token `:`
18 11 | | field: T,
19 12 | | }
20 13 | | }
21 | |_^ no rules expected this token in macro call
22 |
23 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
24
25 error: expected one of `+`, `,`, `=`, or `>`, found `:`
26 --> $DIR/invalid-bounds.rs:15:1
27 |
28 15 | / pin_project! {
29 16 | | struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
30 17 | | field: T,
31 18 | | }
32 19 | | }
33 | | ^
34 | | |
35 | | expected one of `+`, `,`, `=`, or `>`
36 | |_unexpected token
37 | in this macro invocation
38 |
39 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
40
41 error: expected one of `+`, `,`, `=`, or `>`, found `:`
42 --> $DIR/invalid-bounds.rs:21:1
43 |
44 21 | / pin_project! {
45 22 | | struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
46 23 | | field: T,
47 24 | | }
48 25 | | }
49 | | ^
50 | | |
51 | | expected one of `+`, `,`, `=`, or `>`
52 | |_unexpected token
53 | in this macro invocation
54 |
55 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
56
57 error: expected one of `+`, `,`, `=`, or `>`, found `:`
58 --> $DIR/invalid-bounds.rs:27:1
59 |
60 27 | / pin_project! {
61 28 | | struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
62 29 | | field: T,
63 30 | | }
64 31 | | }
65 | | ^
66 | | |
67 | | expected one of `+`, `,`, `=`, or `>`
68 | |_unexpected token
69 | in this macro invocation
70 |
71 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
72
73 error: no rules expected the token `[`
74 --> $DIR/invalid-bounds.rs:33:1
75 |
76 33 | / pin_project! {
77 34 | | struct Generics6<T: ?Sized : Sized> { //~ ERROR no rules expected the token `Sized`
78 35 | | field: T,
79 36 | | }
80 37 | | }
81 | |_^ no rules expected this token in macro call
82 |
83 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
84
85 error: no rules expected the token `[`
86 --> $DIR/invalid-bounds.rs:39:1
87 |
88 39 | / pin_project! {
89 40 | | struct WhereClause1<T>
90 41 | | where
91 42 | | T: 'static : Sized //~ ERROR no rules expected the token `:`
92 ... |
93 45 | | }
94 46 | | }
95 | |_^ no rules expected this token in macro call
96 |
97 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
98
99 error: no rules expected the token `[`
100 --> $DIR/invalid-bounds.rs:48:1
101 |
102 48 | / pin_project! {
103 49 | | struct WhereClause2<T>
104 50 | | where
105 51 | | T: 'static : ?Sized //~ ERROR no rules expected the token `:`
106 ... |
107 54 | | }
108 55 | | }
109 | |_^ no rules expected this token in macro call
110 |
111 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
112
113 error: expected `where`, or `{` after struct name, found `:`
114 --> $DIR/invalid-bounds.rs:57:1
115 |
116 57 | / pin_project! {
117 58 | | struct WhereClause3<T>
118 59 | | where
119 60 | | T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
120 ... |
121 63 | | }
122 64 | | }
123 | | ^
124 | | |
125 | |_expected `where`, or `{` after struct name
126 | in this macro invocation
127 |
128 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
129
130 error: expected `where`, or `{` after struct name, found `:`
131 --> $DIR/invalid-bounds.rs:66:1
132 |
133 66 | / pin_project! {
134 67 | | struct WhereClause4<T>
135 68 | | where
136 69 | | T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
137 ... |
138 72 | | }
139 73 | | }
140 | | ^
141 | | |
142 | |_expected `where`, or `{` after struct name
143 | in this macro invocation
144 |
145 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
146
147 error: expected `where`, or `{` after struct name, found `:`
148 --> $DIR/invalid-bounds.rs:75:1
149 |
150 75 | / pin_project! {
151 76 | | struct WhereClause5<T>
152 77 | | where
153 78 | | T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
154 ... |
155 81 | | }
156 82 | | }
157 | | ^
158 | | |
159 | |_expected `where`, or `{` after struct name
160 | in this macro invocation
161 |
162 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
163
164 error: no rules expected the token `[`
165 --> $DIR/invalid-bounds.rs:84:1
166 |
167 84 | / pin_project! {
168 85 | | struct WhereClause6<T>
169 86 | | where
170 87 | | T: ?Sized : Sized //~ ERROR no rules expected the token `Sized`
171 ... |
172 90 | | }
173 91 | | }
174 | |_^ no rules expected this token in macro call
175 |
176 = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)