blob: 11f4b05d0bf5d08de92d4b0725cb055cd81d0bcb (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// Check that the compiler will resolve `<E>::V` to the variant `V` in the type namespace
// but will reject this because `enum` variants do not exist in the type namespace.
enum E {
V
}
fn check() -> <E>::V {}
//~^ ERROR expected type, found variant `V`
fn main() {}
|