summaryrefslogtreecommitdiffstats
path: root/src/test/ui/enum/enum-variant-type-2.stderr
blob: 7e8453c61f62b65858bd4f7f80008c969dbb6d74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 previous error

For more information about this error, try `rustc --explain E0573`.