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

error: no rules expected the token `[`
  --> $DIR/invalid-bounds.rs:9:1
   |
9  | / pin_project! {
10 | |     struct Generics2<T: 'static : ?Sized> { //~ ERROR no rules expected the token `:`
11 | |         field: T,
12 | |     }
13 | | }
   | |_^ no rules expected this token in macro call
   |
   = note: this error originates in the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected one of `+`, `,`, `=`, or `>`, found `:`
  --> $DIR/invalid-bounds.rs:15:1
   |
15 | / pin_project! {
16 | |     struct Generics3<T: Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
17 | |         field: T,
18 | |     }
19 | | }
   | | ^
   | | |
   | | expected one of `+`, `,`, `=`, or `>`
   | |_unexpected token
   |   in this macro invocation
   |
   = note: this error originates in the macro `$crate::__pin_project_internal` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected one of `+`, `,`, `=`, or `>`, found `:`
  --> $DIR/invalid-bounds.rs:21:1
   |
21 | / pin_project! {
22 | |     struct Generics4<T: ?Sized : 'static> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
23 | |         field: T,
24 | |     }
25 | | }
   | | ^
   | | |
   | | expected one of `+`, `,`, `=`, or `>`
   | |_unexpected token
   |   in this macro invocation
   |
   = note: this error originates in the macro `$crate::__pin_project_internal` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected one of `+`, `,`, `=`, or `>`, found `:`
  --> $DIR/invalid-bounds.rs:27:1
   |
27 | / pin_project! {
28 | |     struct Generics5<T: Sized : ?Sized> { //~ ERROR expected one of `+`, `,`, `=`, or `>`, found `:`
29 | |         field: T,
30 | |     }
31 | | }
   | | ^
   | | |
   | | expected one of `+`, `,`, `=`, or `>`
   | |_unexpected token
   |   in this macro invocation
   |
   = note: this error originates in the macro `$crate::__pin_project_internal` (in Nightly builds, run with -Z macro-backtrace for more info)

error: no rules expected the token `[`
  --> $DIR/invalid-bounds.rs:33:1
   |
33 | / pin_project! {
34 | |     struct Generics6<T: ?Sized : Sized> { //~ ERROR no rules expected the token `Sized`
35 | |         field: T,
36 | |     }
37 | | }
   | |_^ no rules expected this token in macro call
   |
   = note: this error originates in the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)

error: no rules expected the token `[`
  --> $DIR/invalid-bounds.rs:39:1
   |
39 | / pin_project! {
40 | |     struct WhereClause1<T>
41 | |     where
42 | |         T: 'static : Sized //~ ERROR no rules expected the token `:`
...  |
45 | |     }
46 | | }
   | |_^ no rules expected this token in macro call
   |
   = note: this error originates in the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)

error: no rules expected the token `[`
  --> $DIR/invalid-bounds.rs:48:1
   |
48 | / pin_project! {
49 | |     struct WhereClause2<T>
50 | |     where
51 | |         T: 'static : ?Sized //~ ERROR no rules expected the token `:`
...  |
54 | |     }
55 | | }
   | |_^ no rules expected this token in macro call
   |
   = note: this error originates in the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `where`, or `{` after struct name, found `:`
  --> $DIR/invalid-bounds.rs:57:1
   |
57 | / pin_project! {
58 | |     struct WhereClause3<T>
59 | |     where
60 | |         T: Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
...  |
63 | |     }
64 | | }
   | | ^
   | | |
   | |_expected `where`, or `{` after struct name
   |   in this macro invocation
   |
   = note: this error originates in the macro `$crate::__pin_project_internal` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `where`, or `{` after struct name, found `:`
  --> $DIR/invalid-bounds.rs:66:1
   |
66 | / pin_project! {
67 | |     struct WhereClause4<T>
68 | |     where
69 | |         T: ?Sized : 'static //~ ERROR expected `where`, or `{` after struct name, found `:`
...  |
72 | |     }
73 | | }
   | | ^
   | | |
   | |_expected `where`, or `{` after struct name
   |   in this macro invocation
   |
   = note: this error originates in the macro `$crate::__pin_project_internal` (in Nightly builds, run with -Z macro-backtrace for more info)

error: expected `where`, or `{` after struct name, found `:`
  --> $DIR/invalid-bounds.rs:75:1
   |
75 | / pin_project! {
76 | |     struct WhereClause5<T>
77 | |     where
78 | |         T: Sized : ?Sized //~ ERROR expected `where`, or `{` after struct name, found `:`
...  |
81 | |     }
82 | | }
   | | ^
   | | |
   | |_expected `where`, or `{` after struct name
   |   in this macro invocation
   |
   = note: this error originates in the macro `$crate::__pin_project_internal` (in Nightly builds, run with -Z macro-backtrace for more info)

error: no rules expected the token `[`
  --> $DIR/invalid-bounds.rs:84:1
   |
84 | / pin_project! {
85 | |     struct WhereClause6<T>
86 | |     where
87 | |         T: ?Sized : Sized //~ ERROR no rules expected the token `Sized`
...  |
90 | |     }
91 | | }
   | |_^ no rules expected this token in macro call
   |
   = note: this error originates in the macro `pin_project` (in Nightly builds, run with -Z macro-backtrace for more info)