mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
67f455afe1
When constant evaluation fails because its MIR is tainted by errors, suppress note indicating that erroneous constant was used, since those errors have to be fixed regardless of the constant being used or not.
9 lines
174 B
Rust
9 lines
174 B
Rust
// Test spans of errors
|
|
|
|
const TUP: (usize,) = 5usize << 64;
|
|
//~^ ERROR mismatched types
|
|
//~| expected `(usize,)`, found `usize`
|
|
const ARR: [i32; TUP.0] = [];
|
|
|
|
fn main() {
|
|
}
|