rust/src/test/ui/issues/issue-41394.stderr

19 lines
544 B
Plaintext
Raw Normal View History

2018-07-15 14:11:54 -07:00
error[E0369]: binary operation `+` cannot be applied to type `&str`
2018-12-25 08:56:47 -07:00
--> $DIR/issue-41394.rs:2:9
2018-07-15 14:11:54 -07:00
|
LL | A = "" + 1
| ^^^^^^
|
= note: an implementation of `std::ops::Add` might be missing for `&str`
error[E0080]: evaluation of constant value failed
2018-12-25 08:56:47 -07:00
--> $DIR/issue-41394.rs:7:9
|
LL | A = Foo::A as isize
| ^^^^^^^^^^^^^^^ referenced constant has errors
error: aborting due to 2 previous errors
2018-07-15 14:11:54 -07:00
Some errors occurred: E0080, E0369.
For more information about an error, try `rustc --explain E0080`.