rust/tests/ui/enum/enum-variant-type-2.stderr

13 lines
360 B
Plaintext

error[E0573]: expected type, found variant `Foo::Bar`
--> $DIR/enum-variant-type-2.rs:7:11
|
LL | fn foo(x: Foo::Bar) {}
| ^^^^^^^^
| |
| not a type
| help: try using the variant's enum: `Foo`
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0573`.