summaryrefslogtreecommitdiffstats
path: root/src/test/ui/tag-type-args.stderr
blob: 107af76413d3916b2dc69535b62eb39424c288c4 (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`.