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() {}
|