Following code ICEs on today's nightly (97e58c0 2019-09-20):
enum Foo {
A = foo(),
B = foo(), // <- error: internal compiler error: src/librustc/ty/mod.rs:2400: enum discriminant depends on generic arguments
}
const fn foo<T>() -> isize {
0
}
What's peculiar is that no ICE is shown when the Foo enum contains only one item:
Following code ICEs on today's nightly (97e58c0 2019-09-20):
What's peculiar is that no ICE is shown when the
Fooenum contains only one item: