]> git.lizzy.rs Git - rust.git/blob - src/test/ui/enum/enum-variant-type-2.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / enum / enum-variant-type-2.stderr
1 error[E0573]: expected type, found variant `Foo::Bar`
2   --> $DIR/enum-variant-type-2.rs:17:11
3    |
4 LL | fn foo(x: Foo::Bar) {} //~ ERROR expected type, found variant `Foo::Bar`
5    |           ^^^^^^^^
6    |           |
7    |           not a type
8    |           help: you can try using the variant's enum: `Foo`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0573`.