mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 18:53:39 +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.
11 lines
128 B
Rust
11 lines
128 B
Rust
enum Foo {
|
|
A = "" + 1
|
|
//~^ ERROR cannot add `{integer}` to `&str`
|
|
}
|
|
|
|
enum Bar {
|
|
A = Foo::A as isize
|
|
}
|
|
|
|
fn main() {}
|