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