]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/prim-with-args.rs
Rollup merge of #97389 - m-ou-se:memory-ordering-diagnostics, r=estebank
[rust.git] / src / test / ui / typeck / prim-with-args.rs
1 // run-rustfix
2 fn main() {
3
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
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
28 }