]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-41394.stderr
Report const eval error inside the query
[rust.git] / src / test / ui / issues / issue-41394.stderr
1 error[E0369]: binary operation `+` cannot be applied to type `&str`
2   --> $DIR/issue-41394.rs:12:9
3    |
4 LL |     A = "" + 1
5    |         ^^^^^^
6    |
7    = note: an implementation of `std::ops::Add` might be missing for `&str`
8
9 error[E0080]: evaluation of constant value failed
10   --> $DIR/issue-41394.rs:17:9
11    |
12 LL |     A = Foo::A as isize
13    |         ^^^^^^^^^^^^^^^ referenced constant has errors
14
15 error: aborting due to 2 previous errors
16
17 Some errors occurred: E0080, E0369.
18 For more information about an error, try `rustc --explain E0080`.