Closed
Description
type items don't work with enums.
#[derive(Debug)]
enum Foo {
Bar,
Baz,
}
type Loz = Foo;
fn main() {
let y = Loz::Bar;
println!("{:?}", y);
}
On the stable channel the following error occurs:
<anon>:8:13: 8:21 error: type `Foo` does not implement any method in scope named `Bar`
<anon>:8 let y = Loz::Bar;
^~~~~~~~
error: aborting due to previous error
playpen: application terminated with error code 101```