change span label for E0435 (fix #41871)
This commit is contained in:
parent
ab5bec2553
commit
0883ce1b43
3 changed files with 3 additions and 3 deletions
|
|
@ -11,5 +11,5 @@
|
|||
fn main () {
|
||||
let foo = 42u32;
|
||||
let _: [u8; foo]; //~ ERROR E0435
|
||||
//~| NOTE non-constant used with constant
|
||||
//~| NOTE non-constant value
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,6 @@ fn main() {
|
|||
fn bar(n: usize) {
|
||||
let _x = [0; n];
|
||||
//~^ ERROR attempt to use a non-constant value in a constant [E0435]
|
||||
//~| NOTE non-constant used with constant
|
||||
//~| NOTE non-constant value
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue