Sign in
fuchsia
/
third_party
/
rust
/
d782f09ae0b88a73a69e2fa3169222cdbc47d4ec
/
.
/
src
/
test
/
ui
/
variants
/
variant-used-as-type.rs
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
()
{}