summaryrefslogtreecommitdiffstats
path: root/tests/ui/tag-type-args.stderr
blob: 5b54880a685524c6cf60a08c293b3753688587a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0107]: missing generics for enum `Quux`
  --> $DIR/tag-type-args.rs:3:11
   |
LL | fn foo(c: Quux) { assert!((false)); }
   |           ^^^^ expected 1 generic argument
   |
note: enum defined here, with 1 generic parameter: `T`
  --> $DIR/tag-type-args.rs:1:6
   |
LL | enum Quux<T> { Bar }
   |      ^^^^ -
help: add missing generic argument
   |
LL | fn foo(c: Quux<T>) { assert!((false)); }
   |               +++

error: aborting due to previous error

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