1
Fork 0

Errors in promoteds may only cause lints not hard errors

This commit is contained in:
Oliver Scherer 2020-01-08 21:31:08 +01:00
parent 6e1bbff2c6
commit ecd5852194
19 changed files with 157 additions and 176 deletions

View file

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