Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
enum
/
enum-variant-type-2.rs
blob: 27286a0a3ddda5b8c690c9aa568791ec86c9ed8c [
file
] [
log
] [
blame
]
// Test that enum variants are not actually types.
enum
Foo
{
Bar
}
fn
foo
(
x
:
Foo
::
Bar
)
{}
//~ ERROR expected type, found variant `Foo::Bar`
fn
main
()
{}