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
274 B
Text
11 lines
274 B
Text
error[E0369]: cannot add `{integer}` to `&str`
|
|
--> $DIR/issue-41394.rs:2:12
|
|
|
|
|
LL | A = "" + 1
|
|
| -- ^ - {integer}
|
|
| |
|
|
| &str
|
|
|
|
error: aborting due to previous error
|
|
|
|
For more information about this error, try `rustc --explain E0369`.
|