rust/tests/ui/enum-discriminant/issue-41394.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
398 B
Plaintext
Raw Normal View History

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