]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/prim-with-args.rs
Update compile fail tests to use isize.
[rust.git] / src / test / compile-fail / prim-with-args.rs
index 0587e033a97891792241c1779d35b038fa838e55..b4dba4f3a60cf28dfd77b006fd7582a1bd029c54 100644 (file)
 
 fn main() {
 
-let x: int<int>; //~ ERROR type parameters are not allowed on this type
-let x: i8<int>; //~ ERROR type parameters are not allowed on this type
-let x: i16<int>; //~ ERROR type parameters are not allowed on this type
-let x: i32<int>; //~ ERROR type parameters are not allowed on this type
-let x: i64<int>; //~ ERROR type parameters are not allowed on this type
-let x: uint<int>; //~ ERROR type parameters are not allowed on this type
-let x: u8<int>; //~ ERROR type parameters are not allowed on this type
-let x: u16<int>; //~ ERROR type parameters are not allowed on this type
-let x: u32<int>; //~ ERROR type parameters are not allowed on this type
-let x: u64<int>; //~ ERROR type parameters are not allowed on this type
-let x: char<int>; //~ ERROR type parameters are not allowed on this type
+let x: isize<isize>; //~ ERROR type parameters are not allowed on this type
+let x: i8<isize>; //~ ERROR type parameters are not allowed on this type
+let x: i16<isize>; //~ ERROR type parameters are not allowed on this type
+let x: i32<isize>; //~ ERROR type parameters are not allowed on this type
+let x: i64<isize>; //~ ERROR type parameters are not allowed on this type
+let x: uint<isize>; //~ ERROR type parameters are not allowed on this type
+let x: u8<isize>; //~ ERROR type parameters are not allowed on this type
+let x: u16<isize>; //~ ERROR type parameters are not allowed on this type
+let x: u32<isize>; //~ ERROR type parameters are not allowed on this type
+let x: u64<isize>; //~ ERROR type parameters are not allowed on this type
+let x: char<isize>; //~ ERROR type parameters are not allowed on this type
 
-let x: int<'static>; //~ ERROR lifetime parameters are not allowed on this type
+let x: isize<'static>; //~ ERROR lifetime parameters are not allowed on this type
 let x: i8<'static>; //~ ERROR lifetime parameters are not allowed on this type
 let x: i16<'static>; //~ ERROR lifetime parameters are not allowed on this type
 let x: i32<'static>; //~ ERROR lifetime parameters are not allowed on this type