Refactor the const eval diagnostic API
This commit is contained in:
parent
4a9c58c6bd
commit
5c0d1355f2
51 changed files with 354 additions and 351 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue