Promote Ref
s to constants instead of static
This commit is contained in:
parent
a59abfa450
commit
1688719214
53 changed files with 447 additions and 223 deletions
|
@ -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]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue