rust/tests/ui/issues/issue-41394.rs

12 lines
143 B
Rust
Raw Normal View History

enum Foo {
A = "" + 1
2019-12-11 22:11:32 +00:00
//~^ ERROR cannot add `{integer}` to `&str`
}
enum Bar {
A = Foo::A as isize
//~^ const
}
fn main() {}