1
Fork 0

Promote Refs to constants instead of static

This commit is contained in:
Santiago Pastorino 2019-11-22 17:26:09 -03:00 committed by Oliver Scherer
parent a59abfa450
commit 1688719214
53 changed files with 447 additions and 223 deletions

View file

@ -10,4 +10,5 @@ const FOO: u32 = [X - Y, Y - X][(X < Y) as usize];
fn main() {
println!("{}", FOO);
//~^ ERROR
//~| ERROR erroneous constant used [E0080]
}