1
Fork 0

Properly report transitive errors

This commit is contained in:
Oliver Schneider 2018-06-03 03:01:06 +02:00
parent 9cb47de813
commit 78d48867da
25 changed files with 272 additions and 106 deletions

View file

@ -19,5 +19,7 @@ const FOO: u32 = [X - Y, Y - X][(X < Y) as usize];
fn main() {
println!("{}", FOO);
//~^ WARN this expression will panic at runtime
//~| WARN referenced constant
//~| ERROR erroneous constant used
//~| E0080
}