|
1 | 1 | // run-rustfix |
2 | 2 | fn main() { |
3 | 3 |
|
4 | | -let _x: isize; //~ ERROR type arguments are not allowed on this type |
5 | | -let _x: i8; //~ ERROR type arguments are not allowed on this type |
6 | | -let _x: i16; //~ ERROR type arguments are not allowed on this type |
7 | | -let _x: i32; //~ ERROR type arguments are not allowed on this type |
8 | | -let _x: i64; //~ ERROR type arguments are not allowed on this type |
9 | | -let _x: usize; //~ ERROR type arguments are not allowed on this type |
10 | | -let _x: u8; //~ ERROR type arguments are not allowed on this type |
11 | | -let _x: u16; //~ ERROR type arguments are not allowed on this type |
12 | | -let _x: u32; //~ ERROR type arguments are not allowed on this type |
13 | | -let _x: u64; //~ ERROR type arguments are not allowed on this type |
14 | | -let _x: char; //~ ERROR type arguments are not allowed on this type |
| 4 | +let _x: isize; //~ ERROR type arguments are not allowed on builtin type |
| 5 | +let _x: i8; //~ ERROR type arguments are not allowed on builtin type |
| 6 | +let _x: i16; //~ ERROR type arguments are not allowed on builtin type |
| 7 | +let _x: i32; //~ ERROR type arguments are not allowed on builtin type |
| 8 | +let _x: i64; //~ ERROR type arguments are not allowed on builtin type |
| 9 | +let _x: usize; //~ ERROR type arguments are not allowed on builtin type |
| 10 | +let _x: u8; //~ ERROR type arguments are not allowed on builtin type |
| 11 | +let _x: u16; //~ ERROR type arguments are not allowed on builtin type |
| 12 | +let _x: u32; //~ ERROR type arguments are not allowed on builtin type |
| 13 | +let _x: u64; //~ ERROR type arguments are not allowed on builtin type |
| 14 | +let _x: char; //~ ERROR type arguments are not allowed on builtin type |
15 | 15 |
|
16 | | -let _x: isize; //~ ERROR lifetime arguments are not allowed on this type |
17 | | -let _x: i8; //~ ERROR lifetime arguments are not allowed on this type |
18 | | -let _x: i16; //~ ERROR lifetime arguments are not allowed on this type |
19 | | -let _x: i32; //~ ERROR lifetime arguments are not allowed on this type |
20 | | -let _x: i64; //~ ERROR lifetime arguments are not allowed on this type |
21 | | -let _x: usize; //~ ERROR lifetime arguments are not allowed on this type |
22 | | -let _x: u8; //~ ERROR lifetime arguments are not allowed on this type |
23 | | -let _x: u16; //~ ERROR lifetime arguments are not allowed on this type |
24 | | -let _x: u32; //~ ERROR lifetime arguments are not allowed on this type |
25 | | -let _x: u64; //~ ERROR lifetime arguments are not allowed on this type |
26 | | -let _x: char; //~ ERROR lifetime arguments are not allowed on this type |
| 16 | +let _x: isize; //~ ERROR lifetime arguments are not allowed on builtin type |
| 17 | +let _x: i8; //~ ERROR lifetime arguments are not allowed on builtin type |
| 18 | +let _x: i16; //~ ERROR lifetime arguments are not allowed on builtin type |
| 19 | +let _x: i32; //~ ERROR lifetime arguments are not allowed on builtin type |
| 20 | +let _x: i64; //~ ERROR lifetime arguments are not allowed on builtin type |
| 21 | +let _x: usize; //~ ERROR lifetime arguments are not allowed on builtin type |
| 22 | +let _x: u8; //~ ERROR lifetime arguments are not allowed on builtin type |
| 23 | +let _x: u16; //~ ERROR lifetime arguments are not allowed on builtin type |
| 24 | +let _x: u32; //~ ERROR lifetime arguments are not allowed on builtin type |
| 25 | +let _x: u64; //~ ERROR lifetime arguments are not allowed on builtin type |
| 26 | +let _x: char; //~ ERROR lifetime arguments are not allowed on builtin type |
27 | 27 |
|
28 | 28 | } |
0 commit comments