1 2 3 4 5 6 7 8 9 10
enum Foo { A = "" + 1 //~^ ERROR cannot add `{integer}` to `&str` } enum Bar { A = Foo::A as isize } fn main() {}