Turn the use of erroneous constants into errors again
This commit is contained in:
parent
4eea1a4e5e
commit
4d473300a2
13 changed files with 45 additions and 42 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue