Closed philipc closed 7 years ago
Slightly minimized:
enum E { V }
fn main() {
E::V::associated_item;
}
The regression is introduced in https://github.com/rust-lang/rust/pull/38154
I thought this situation is always caught by resolve now.
Preferable fix: actually catch this in resolve, rather than reintroducing the old error E0248
in typeck.
For this malformed code:
rustc 1.14 gives the following expected error:
But nightly gives an ICE:
rustc --version --verbose: