Sign in
◑
Theme
rust
/
rust
/
2ee54ff4e93d3ff4eaed85d2386ab70fc79b3701
/
.
/
tests
/
ui
/
enum
/
enum-variant-type-2.rs
blob: a0bfd7834cd74974828a1bbb32112014ce02cb60 [
file
]
//@ edition:2015
// 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
()
{}