]> git.proxmox.com Git - rustc.git/blame - src/test/ui/prim-with-args.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / prim-with-args.rs
CommitLineData
223e47cc
LB
1fn main() {
2
532ac7d7
XL
3let x: isize<isize>; //~ ERROR type arguments are not allowed for this type
4let x: i8<isize>; //~ ERROR type arguments are not allowed for this type
5let x: i16<isize>; //~ ERROR type arguments are not allowed for this type
6let x: i32<isize>; //~ ERROR type arguments are not allowed for this type
7let x: i64<isize>; //~ ERROR type arguments are not allowed for this type
8let x: usize<isize>; //~ ERROR type arguments are not allowed for this type
9let x: u8<isize>; //~ ERROR type arguments are not allowed for this type
10let x: u16<isize>; //~ ERROR type arguments are not allowed for this type
11let x: u32<isize>; //~ ERROR type arguments are not allowed for this type
12let x: u64<isize>; //~ ERROR type arguments are not allowed for this type
13let x: char<isize>; //~ ERROR type arguments are not allowed for this type
223e47cc 14
532ac7d7
XL
15let x: isize<'static>; //~ ERROR lifetime arguments are not allowed for this type
16let x: i8<'static>; //~ ERROR lifetime arguments are not allowed for this type
17let x: i16<'static>; //~ ERROR lifetime arguments are not allowed for this type
18let x: i32<'static>; //~ ERROR lifetime arguments are not allowed for this type
19let x: i64<'static>; //~ ERROR lifetime arguments are not allowed for this type
20let x: usize<'static>; //~ ERROR lifetime arguments are not allowed for this type
21let x: u8<'static>; //~ ERROR lifetime arguments are not allowed for this type
22let x: u16<'static>; //~ ERROR lifetime arguments are not allowed for this type
23let x: u32<'static>; //~ ERROR lifetime arguments are not allowed for this type
24let x: u64<'static>; //~ ERROR lifetime arguments are not allowed for this type
25let x: char<'static>; //~ ERROR lifetime arguments are not allowed for this type
223e47cc
LB
26
27}