]> git.proxmox.com Git - rustc.git/blob - src/test/ui/typeck/prim-with-args.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / typeck / prim-with-args.stderr
1 error[E0109]: type arguments are not allowed on builtin type `isize`
2 --> $DIR/prim-with-args.rs:4:15
3 |
4 LL | let _x: isize<isize>;
5 | ----- ^^^^^ type argument not allowed
6 | |
7 | not allowed on builtin type `isize`
8 |
9 help: primitive type `isize` doesn't have generic parameters
10 |
11 LL - let _x: isize<isize>;
12 LL + let _x: isize;
13 |
14
15 error[E0109]: type arguments are not allowed on builtin type `i8`
16 --> $DIR/prim-with-args.rs:5:12
17 |
18 LL | let _x: i8<isize>;
19 | -- ^^^^^ type argument not allowed
20 | |
21 | not allowed on builtin type `i8`
22 |
23 help: primitive type `i8` doesn't have generic parameters
24 |
25 LL - let _x: i8<isize>;
26 LL + let _x: i8;
27 |
28
29 error[E0109]: type arguments are not allowed on builtin type `i16`
30 --> $DIR/prim-with-args.rs:6:13
31 |
32 LL | let _x: i16<isize>;
33 | --- ^^^^^ type argument not allowed
34 | |
35 | not allowed on builtin type `i16`
36 |
37 help: primitive type `i16` doesn't have generic parameters
38 |
39 LL - let _x: i16<isize>;
40 LL + let _x: i16;
41 |
42
43 error[E0109]: type arguments are not allowed on builtin type `i32`
44 --> $DIR/prim-with-args.rs:7:13
45 |
46 LL | let _x: i32<isize>;
47 | --- ^^^^^ type argument not allowed
48 | |
49 | not allowed on builtin type `i32`
50 |
51 help: primitive type `i32` doesn't have generic parameters
52 |
53 LL - let _x: i32<isize>;
54 LL + let _x: i32;
55 |
56
57 error[E0109]: type arguments are not allowed on builtin type `i64`
58 --> $DIR/prim-with-args.rs:8:13
59 |
60 LL | let _x: i64<isize>;
61 | --- ^^^^^ type argument not allowed
62 | |
63 | not allowed on builtin type `i64`
64 |
65 help: primitive type `i64` doesn't have generic parameters
66 |
67 LL - let _x: i64<isize>;
68 LL + let _x: i64;
69 |
70
71 error[E0109]: type arguments are not allowed on builtin type `usize`
72 --> $DIR/prim-with-args.rs:9:15
73 |
74 LL | let _x: usize<isize>;
75 | ----- ^^^^^ type argument not allowed
76 | |
77 | not allowed on builtin type `usize`
78 |
79 help: primitive type `usize` doesn't have generic parameters
80 |
81 LL - let _x: usize<isize>;
82 LL + let _x: usize;
83 |
84
85 error[E0109]: type arguments are not allowed on builtin type `u8`
86 --> $DIR/prim-with-args.rs:10:12
87 |
88 LL | let _x: u8<isize>;
89 | -- ^^^^^ type argument not allowed
90 | |
91 | not allowed on builtin type `u8`
92 |
93 help: primitive type `u8` doesn't have generic parameters
94 |
95 LL - let _x: u8<isize>;
96 LL + let _x: u8;
97 |
98
99 error[E0109]: type arguments are not allowed on builtin type `u16`
100 --> $DIR/prim-with-args.rs:11:13
101 |
102 LL | let _x: u16<isize>;
103 | --- ^^^^^ type argument not allowed
104 | |
105 | not allowed on builtin type `u16`
106 |
107 help: primitive type `u16` doesn't have generic parameters
108 |
109 LL - let _x: u16<isize>;
110 LL + let _x: u16;
111 |
112
113 error[E0109]: type arguments are not allowed on builtin type `u32`
114 --> $DIR/prim-with-args.rs:12:13
115 |
116 LL | let _x: u32<isize>;
117 | --- ^^^^^ type argument not allowed
118 | |
119 | not allowed on builtin type `u32`
120 |
121 help: primitive type `u32` doesn't have generic parameters
122 |
123 LL - let _x: u32<isize>;
124 LL + let _x: u32;
125 |
126
127 error[E0109]: type arguments are not allowed on builtin type `u64`
128 --> $DIR/prim-with-args.rs:13:13
129 |
130 LL | let _x: u64<isize>;
131 | --- ^^^^^ type argument not allowed
132 | |
133 | not allowed on builtin type `u64`
134 |
135 help: primitive type `u64` doesn't have generic parameters
136 |
137 LL - let _x: u64<isize>;
138 LL + let _x: u64;
139 |
140
141 error[E0109]: type arguments are not allowed on builtin type `char`
142 --> $DIR/prim-with-args.rs:14:14
143 |
144 LL | let _x: char<isize>;
145 | ---- ^^^^^ type argument not allowed
146 | |
147 | not allowed on builtin type `char`
148 |
149 help: primitive type `char` doesn't have generic parameters
150 |
151 LL - let _x: char<isize>;
152 LL + let _x: char;
153 |
154
155 error[E0109]: lifetime arguments are not allowed on builtin type `isize`
156 --> $DIR/prim-with-args.rs:16:15
157 |
158 LL | let _x: isize<'static>;
159 | ----- ^^^^^^^ lifetime argument not allowed
160 | |
161 | not allowed on builtin type `isize`
162 |
163 help: primitive type `isize` doesn't have generic parameters
164 |
165 LL - let _x: isize<'static>;
166 LL + let _x: isize;
167 |
168
169 error[E0109]: lifetime arguments are not allowed on builtin type `i8`
170 --> $DIR/prim-with-args.rs:17:12
171 |
172 LL | let _x: i8<'static>;
173 | -- ^^^^^^^ lifetime argument not allowed
174 | |
175 | not allowed on builtin type `i8`
176 |
177 help: primitive type `i8` doesn't have generic parameters
178 |
179 LL - let _x: i8<'static>;
180 LL + let _x: i8;
181 |
182
183 error[E0109]: lifetime arguments are not allowed on builtin type `i16`
184 --> $DIR/prim-with-args.rs:18:13
185 |
186 LL | let _x: i16<'static>;
187 | --- ^^^^^^^ lifetime argument not allowed
188 | |
189 | not allowed on builtin type `i16`
190 |
191 help: primitive type `i16` doesn't have generic parameters
192 |
193 LL - let _x: i16<'static>;
194 LL + let _x: i16;
195 |
196
197 error[E0109]: lifetime arguments are not allowed on builtin type `i32`
198 --> $DIR/prim-with-args.rs:19:13
199 |
200 LL | let _x: i32<'static>;
201 | --- ^^^^^^^ lifetime argument not allowed
202 | |
203 | not allowed on builtin type `i32`
204 |
205 help: primitive type `i32` doesn't have generic parameters
206 |
207 LL - let _x: i32<'static>;
208 LL + let _x: i32;
209 |
210
211 error[E0109]: lifetime arguments are not allowed on builtin type `i64`
212 --> $DIR/prim-with-args.rs:20:13
213 |
214 LL | let _x: i64<'static>;
215 | --- ^^^^^^^ lifetime argument not allowed
216 | |
217 | not allowed on builtin type `i64`
218 |
219 help: primitive type `i64` doesn't have generic parameters
220 |
221 LL - let _x: i64<'static>;
222 LL + let _x: i64;
223 |
224
225 error[E0109]: lifetime arguments are not allowed on builtin type `usize`
226 --> $DIR/prim-with-args.rs:21:15
227 |
228 LL | let _x: usize<'static>;
229 | ----- ^^^^^^^ lifetime argument not allowed
230 | |
231 | not allowed on builtin type `usize`
232 |
233 help: primitive type `usize` doesn't have generic parameters
234 |
235 LL - let _x: usize<'static>;
236 LL + let _x: usize;
237 |
238
239 error[E0109]: lifetime arguments are not allowed on builtin type `u8`
240 --> $DIR/prim-with-args.rs:22:12
241 |
242 LL | let _x: u8<'static>;
243 | -- ^^^^^^^ lifetime argument not allowed
244 | |
245 | not allowed on builtin type `u8`
246 |
247 help: primitive type `u8` doesn't have generic parameters
248 |
249 LL - let _x: u8<'static>;
250 LL + let _x: u8;
251 |
252
253 error[E0109]: lifetime arguments are not allowed on builtin type `u16`
254 --> $DIR/prim-with-args.rs:23:13
255 |
256 LL | let _x: u16<'static>;
257 | --- ^^^^^^^ lifetime argument not allowed
258 | |
259 | not allowed on builtin type `u16`
260 |
261 help: primitive type `u16` doesn't have generic parameters
262 |
263 LL - let _x: u16<'static>;
264 LL + let _x: u16;
265 |
266
267 error[E0109]: lifetime arguments are not allowed on builtin type `u32`
268 --> $DIR/prim-with-args.rs:24:13
269 |
270 LL | let _x: u32<'static>;
271 | --- ^^^^^^^ lifetime argument not allowed
272 | |
273 | not allowed on builtin type `u32`
274 |
275 help: primitive type `u32` doesn't have generic parameters
276 |
277 LL - let _x: u32<'static>;
278 LL + let _x: u32;
279 |
280
281 error[E0109]: lifetime arguments are not allowed on builtin type `u64`
282 --> $DIR/prim-with-args.rs:25:13
283 |
284 LL | let _x: u64<'static>;
285 | --- ^^^^^^^ lifetime argument not allowed
286 | |
287 | not allowed on builtin type `u64`
288 |
289 help: primitive type `u64` doesn't have generic parameters
290 |
291 LL - let _x: u64<'static>;
292 LL + let _x: u64;
293 |
294
295 error[E0109]: lifetime arguments are not allowed on builtin type `char`
296 --> $DIR/prim-with-args.rs:26:14
297 |
298 LL | let _x: char<'static>;
299 | ---- ^^^^^^^ lifetime argument not allowed
300 | |
301 | not allowed on builtin type `char`
302 |
303 help: primitive type `char` doesn't have generic parameters
304 |
305 LL - let _x: char<'static>;
306 LL + let _x: char;
307 |
308
309 error: aborting due to 22 previous errors
310
311 For more information about this error, try `rustc --explain E0109`.