1 error[E0573]: expected type, found variant `Foo::Bar`
2 --> $DIR/enum-variant-type-2.rs:17:11
4 LL | fn foo(x: Foo::Bar) {} //~ ERROR expected type, found variant `Foo::Bar`
8 | help: you can try using the variant's enum: `Foo`
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0573`.