skip user-type annotations if they don't have regions
This commit is contained in:
parent
d5d5e8c5f5
commit
a66ab2bedc
7 changed files with 43 additions and 55 deletions
|
@ -14,7 +14,6 @@ const X: u32 = 5;
|
|||
const Y: u32 = 6;
|
||||
const FOO: u32 = [X - Y, Y - X][(X < Y) as usize];
|
||||
//~^ WARN this constant cannot be used
|
||||
//~| ERROR
|
||||
|
||||
fn main() {
|
||||
println!("{}", FOO);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue