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