]> git.lizzy.rs Git - rust.git/blob - tests/ui/enum/enum-variant-type-2.stderr
Rollup merge of #107194 - xfix:remove-slice-internals-dependency-in-rustc-ast, r...
[rust.git] / tests / ui / enum / enum-variant-type-2.stderr
1 error[E0573]: expected type, found variant `Foo::Bar`
2   --> $DIR/enum-variant-type-2.rs:7:11
3    |
4 LL | fn foo(x: Foo::Bar) {}
5    |           ^^^^^^^^
6    |           |
7    |           not a type
8    |           help: 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`.