1
Fork 0

Refactor the const eval diagnostic API

This commit is contained in:
Oliver Schneider 2018-06-02 23:38:57 +02:00
parent 4a9c58c6bd
commit 5c0d1355f2
51 changed files with 354 additions and 351 deletions

View file

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