1
Fork 0

also print the expected type in the error message

This commit is contained in:
Oliver Schneider 2016-02-25 11:12:18 +01:00
parent 54b15c7160
commit bba1596c71
5 changed files with 27 additions and 13 deletions

View file

@ -21,7 +21,9 @@ use std::{u8, u16, u32, u64, usize};
const A_I8_T
: [u32; (i8::MAX as i8 + 1u8) as usize]
//~^ ERROR tried to add two integrals of different types [E0250]
//~^ ERROR mismatched types:
//~| expected `i8`,
//~| found `u8` [E0250]
= [0; (i8::MAX as usize) + 1];
fn main() {