]> git.lizzy.rs Git - rust.git/blob - src/test/ui/prim-with-args.rs
Rollup merge of #57463 - phansch:fix_some_links, r=steveklabnik
[rust.git] / src / test / ui / prim-with-args.rs
1 fn main() {
2
3 let x: isize<isize>; //~ ERROR type arguments are not allowed on this entity
4 let x: i8<isize>; //~ ERROR type arguments are not allowed on this entity
5 let x: i16<isize>; //~ ERROR type arguments are not allowed on this entity
6 let x: i32<isize>; //~ ERROR type arguments are not allowed on this entity
7 let x: i64<isize>; //~ ERROR type arguments are not allowed on this entity
8 let x: usize<isize>; //~ ERROR type arguments are not allowed on this entity
9 let x: u8<isize>; //~ ERROR type arguments are not allowed on this entity
10 let x: u16<isize>; //~ ERROR type arguments are not allowed on this entity
11 let x: u32<isize>; //~ ERROR type arguments are not allowed on this entity
12 let x: u64<isize>; //~ ERROR type arguments are not allowed on this entity
13 let x: char<isize>; //~ ERROR type arguments are not allowed on this entity
14
15 let x: isize<'static>; //~ ERROR lifetime arguments are not allowed on this entity
16 let x: i8<'static>; //~ ERROR lifetime arguments are not allowed on this entity
17 let x: i16<'static>; //~ ERROR lifetime arguments are not allowed on this entity
18 let x: i32<'static>; //~ ERROR lifetime arguments are not allowed on this entity
19 let x: i64<'static>; //~ ERROR lifetime arguments are not allowed on this entity
20 let x: usize<'static>; //~ ERROR lifetime arguments are not allowed on this entity
21 let x: u8<'static>; //~ ERROR lifetime arguments are not allowed on this entity
22 let x: u16<'static>; //~ ERROR lifetime arguments are not allowed on this entity
23 let x: u32<'static>; //~ ERROR lifetime arguments are not allowed on this entity
24 let x: u64<'static>; //~ ERROR lifetime arguments are not allowed on this entity
25 let x: char<'static>; //~ ERROR lifetime arguments are not allowed on this entity
26
27 }