rust/tests/ui/issues/issue-41394.rs
2023-01-11 09:32:08 +00:00

12 lines
143 B
Rust

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