1
Fork 0

Promoteds are statics and statics have a place, not just a value

This commit is contained in:
Oliver Schneider 2018-07-22 01:01:07 +02:00
parent 210d61f05c
commit de511438cd
54 changed files with 354 additions and 574 deletions

View file

@ -17,8 +17,6 @@ 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
//~^ ERROR erroneous constant used
//~| E0080
}