blob: f27db1024760ae3e51152f6b03d0adf6714cca84 [file] [log] [blame]
// Test error message when enum variants are used as types
// issue 21225
enum Ty {
A,
B(Ty::A),
//~^ ERROR expected type, found variant `Ty::A`
}
// issue 19197
enum E {
A
}
impl E::A {}
//~^ ERROR expected type, found variant `E::A`
fn main() {}