1 2 3 4 5 6 7 8 9 10
enum Foo { A = foo(), //~ ERROR: type annotations needed B = foo(), //~ ERROR: type annotations needed } const fn foo<T>() -> isize { 0 } fn main() {}