Properly report transitive errors
This commit is contained in:
parent
9cb47de813
commit
78d48867da
25 changed files with 272 additions and 106 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue