mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +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.
10 lines
174 B
Rust
10 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() {
|
|
}
|