]> git.lizzy.rs Git - rust.git/blob - src/test/ui/tag-type-args.stderr
Rollup merge of #86165 - m-ou-se:proc-macro-span-shrink, r=dtolnay
[rust.git] / src / test / ui / tag-type-args.stderr
1 error[E0107]: missing generics for enum `Quux`
2   --> $DIR/tag-type-args.rs:3:11
3    |
4 LL | fn foo(c: Quux) { assert!((false)); }
5    |           ^^^^ expected 1 generic argument
6    |
7 note: enum defined here, with 1 generic parameter: `T`
8   --> $DIR/tag-type-args.rs:1:6
9    |
10 LL | enum Quux<T> { Bar }
11    |      ^^^^ -
12 help: add missing generic argument
13    |
14 LL | fn foo(c: Quux<T>) { assert!((false)); }
15    |           ~~~~~~~
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0107`.