rust/tests/ui/enum-discriminant/issue-41394.rs
2023-04-20 15:06:17 -03: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() {}