]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/prim-with-args.fixed
fn-trait-closure test now pass on new solver
[rust.git] / tests / ui / typeck / prim-with-args.fixed
1 // run-rustfix
2 fn main() {
3
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
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
28 }