Make invalid integer operation messages consistent
This commit is contained in:
parent
6f9a8a7f9b
commit
8eb42ba0fb
71 changed files with 323 additions and 319 deletions
|
|
@ -1,6 +1,6 @@
|
|||
const A: &'static [i32] = &[];
|
||||
const B: i32 = (&A)[1];
|
||||
//~^ index out of bounds: the len is 0 but the index is 1
|
||||
//~^ index out of bounds: the length is 0 but the index is 1
|
||||
//~| ERROR any use of this value will cause an error
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue