]>
Commit | Line | Data |
---|---|---|
223e47cc LB |
1 | fn main() { |
2 | ||
532ac7d7 XL |
3 | let x: isize<isize>; //~ ERROR type arguments are not allowed for this type |
4 | let x: i8<isize>; //~ ERROR type arguments are not allowed for this type | |
5 | let x: i16<isize>; //~ ERROR type arguments are not allowed for this type | |
6 | let x: i32<isize>; //~ ERROR type arguments are not allowed for this type | |
7 | let x: i64<isize>; //~ ERROR type arguments are not allowed for this type | |
8 | let x: usize<isize>; //~ ERROR type arguments are not allowed for this type | |
9 | let x: u8<isize>; //~ ERROR type arguments are not allowed for this type | |
10 | let x: u16<isize>; //~ ERROR type arguments are not allowed for this type | |
11 | let x: u32<isize>; //~ ERROR type arguments are not allowed for this type | |
12 | let x: u64<isize>; //~ ERROR type arguments are not allowed for this type | |
13 | let x: char<isize>; //~ ERROR type arguments are not allowed for this type | |
223e47cc | 14 | |
532ac7d7 XL |
15 | let x: isize<'static>; //~ ERROR lifetime arguments are not allowed for this type |
16 | let x: i8<'static>; //~ ERROR lifetime arguments are not allowed for this type | |
17 | let x: i16<'static>; //~ ERROR lifetime arguments are not allowed for this type | |
18 | let x: i32<'static>; //~ ERROR lifetime arguments are not allowed for this type | |
19 | let x: i64<'static>; //~ ERROR lifetime arguments are not allowed for this type | |
20 | let x: usize<'static>; //~ ERROR lifetime arguments are not allowed for this type | |
21 | let x: u8<'static>; //~ ERROR lifetime arguments are not allowed for this type | |
22 | let x: u16<'static>; //~ ERROR lifetime arguments are not allowed for this type | |
23 | let x: u32<'static>; //~ ERROR lifetime arguments are not allowed for this type | |
24 | let x: u64<'static>; //~ ERROR lifetime arguments are not allowed for this type | |
25 | let x: char<'static>; //~ ERROR lifetime arguments are not allowed for this type | |
223e47cc LB |
26 | |
27 | } |