1
Fork 0

skip user-type annotations if they don't have regions

This commit is contained in:
Niko Matsakis 2018-10-17 18:23:43 -04:00
parent d5d5e8c5f5
commit a66ab2bedc
7 changed files with 43 additions and 55 deletions

View file

@ -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);