Turn the use of erroneous constants into errors again

This commit is contained in:
Oliver Schneider 2018-06-27 14:55:06 +02:00
parent 4eea1a4e5e
commit 4d473300a2
13 changed files with 45 additions and 42 deletions

View file

@ -27,4 +27,6 @@ const FOO: u8 = [5u8][1];
fn main() {
black_box((FOO, FOO));
//~^ ERROR referenced constant has errors
//~| ERROR could not evaluate constant
}