rust/tests/ui/enum-discriminant/issue-41394.stderr
2023-04-20 15:06:17 -03:00

18 lines
398 B
Plaintext

error[E0369]: cannot add `{integer}` to `&str`
--> $DIR/issue-41394.rs:2:12
|
LL | A = "" + 1
| -- ^ - {integer}
| |
| &str
note: erroneous constant used
--> $DIR/issue-41394.rs:7:9
|
LL | A = Foo::A as isize
| ^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0369`.