diff options
Diffstat (limited to 'src/test/ui/numeric/numeric-cast.fixed')
| -rw-r--r-- | src/test/ui/numeric/numeric-cast.fixed | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/src/test/ui/numeric/numeric-cast.fixed b/src/test/ui/numeric/numeric-cast.fixed index 31acdb8faf6..cf0560a1077 100644 --- a/src/test/ui/numeric/numeric-cast.fixed +++ b/src/test/ui/numeric/numeric-cast.fixed @@ -49,7 +49,7 @@ fn main() { //~^ ERROR mismatched types foo::<isize>(x_u16.try_into().unwrap()); //~^ ERROR mismatched types - foo::<isize>(x_u8.try_into().unwrap()); + foo::<isize>(x_u8.into()); //~^ ERROR mismatched types foo::<isize>(x_isize); foo::<isize>(x_i64.try_into().unwrap()); @@ -89,11 +89,11 @@ fn main() { //~^ ERROR mismatched types foo::<i64>(x_u64.try_into().unwrap()); //~^ ERROR mismatched types - foo::<i64>(x_u32.try_into().unwrap()); + foo::<i64>(x_u32.into()); //~^ ERROR mismatched types - foo::<i64>(x_u16.try_into().unwrap()); + foo::<i64>(x_u16.into()); //~^ ERROR mismatched types - foo::<i64>(x_u8.try_into().unwrap()); + foo::<i64>(x_u8.into()); //~^ ERROR mismatched types foo::<i64>(x_isize.try_into().unwrap()); //~^ ERROR mismatched types @@ -135,9 +135,9 @@ fn main() { //~^ ERROR mismatched types foo::<i32>(x_u32.try_into().unwrap()); //~^ ERROR mismatched types - foo::<i32>(x_u16.try_into().unwrap()); + foo::<i32>(x_u16.into()); //~^ ERROR mismatched types - foo::<i32>(x_u8.try_into().unwrap()); + foo::<i32>(x_u8.into()); //~^ ERROR mismatched types foo::<i32>(x_isize.try_into().unwrap()); //~^ ERROR mismatched types @@ -181,7 +181,7 @@ fn main() { //~^ ERROR mismatched types foo::<i16>(x_u16.try_into().unwrap()); //~^ ERROR mismatched types - foo::<i16>(x_u8.try_into().unwrap()); + foo::<i16>(x_u8.into()); //~^ ERROR mismatched types foo::<i16>(x_isize.try_into().unwrap()); //~^ ERROR mismatched types | 
