20 lines
546 B
Plaintext
20 lines
546 B
Plaintext
error[E0107]: missing generics for enum `Quux`
|
|
--> $DIR/tag-type-args.rs:3:11
|
|
|
|
|
LL | fn foo(c: Quux) { assert!((false)); }
|
|
| ^^^^ expected 1 type argument
|
|
|
|
|
note: enum defined here, with 1 type parameter: `T`
|
|
--> $DIR/tag-type-args.rs:1:6
|
|
|
|
|
LL | enum Quux<T> { Bar }
|
|
| ^^^^ -
|
|
help: use angle brackets to add missing type 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`.
|