rust/src/test/ui/issues/issue-41394.rs
2018-12-25 21:08:33 -07:00

12 lines
200 B
Rust

enum Foo {
A = "" + 1
//~^ ERROR binary operation `+` cannot be applied to type `&str`
}
enum Bar {
A = Foo::A as isize
//~^ ERROR evaluation of constant value failed
}
fn main() {}