diff options
Diffstat (limited to 'src/test/ui/numeric/numeric-cast-no-fix.rs')
-rw-r--r-- | src/test/ui/numeric/numeric-cast-no-fix.rs | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/src/test/ui/numeric/numeric-cast-no-fix.rs b/src/test/ui/numeric/numeric-cast-no-fix.rs deleted file mode 100644 index 63e5f098a..000000000 --- a/src/test/ui/numeric/numeric-cast-no-fix.rs +++ /dev/null @@ -1,87 +0,0 @@ -#[allow(unused_must_use)] -fn main() { - let x_usize: usize = 1; - let x_u128: u128 = 2; - let x_u64: u64 = 3; - let x_u32: u32 = 4; - let x_u16: u16 = 5; - let x_u8: u8 = 6; - - x_usize > -1_isize; - //~^ ERROR mismatched types - x_u128 > -1_isize; - //~^ ERROR mismatched types - x_u64 > -1_isize; - //~^ ERROR mismatched types - x_u32 > -1_isize; - //~^ ERROR mismatched types - x_u16 > -1_isize; - //~^ ERROR mismatched types - x_u8 > -1_isize; - //~^ ERROR mismatched types - - x_usize > -1_i128; - //~^ ERROR mismatched types - x_u128 > -1_i128; - //~^ ERROR mismatched types - x_u64 > -1_i128; - //~^ ERROR mismatched types - x_u32 > -1_i128; - //~^ ERROR mismatched types - x_u16 > -1_i128; - //~^ ERROR mismatched types - x_u8 > -1_i128; - //~^ ERROR mismatched types - - x_usize > -1_i64; - //~^ ERROR mismatched types - x_u128 > -1_i64; - //~^ ERROR mismatched types - x_u64 > -1_i64; - //~^ ERROR mismatched types - x_u32 > -1_i64; - //~^ ERROR mismatched types - x_u16 > -1_i64; - //~^ ERROR mismatched types - x_u8 > -1_i64; - //~^ ERROR mismatched types - - x_usize > -1_i32; - //~^ ERROR mismatched types - x_u128 > -1_i32; - //~^ ERROR mismatched types - x_u64 > -1_i32; - //~^ ERROR mismatched types - x_u32 > -1_i32; - //~^ ERROR mismatched types - x_u16 > -1_i32; - //~^ ERROR mismatched types - x_u8 > -1_i32; - //~^ ERROR mismatched types - - x_usize > -1_i16; - //~^ ERROR mismatched types - x_u128 > -1_i16; - //~^ ERROR mismatched types - x_u64 > -1_i16; - //~^ ERROR mismatched types - x_u32 > -1_i16; - //~^ ERROR mismatched types - x_u16 > -1_i16; - //~^ ERROR mismatched types - x_u8 > -1_i16; - //~^ ERROR mismatched types - - x_usize > -1_i8; - //~^ ERROR mismatched types - x_u128 > -1_i8; - //~^ ERROR mismatched types - x_u64 > -1_i8; - //~^ ERROR mismatched types - x_u32 > -1_i8; - //~^ ERROR mismatched types - x_u16 > -1_i8; - //~^ ERROR mismatched types - x_u8 > -1_i8; - //~^ ERROR mismatched types -} |