2024-02-23 11:45:44 +00:00
|
|
|
error[E0392]: type parameter `T` is never used
|
2025-07-01 20:20:14 +05:00
|
|
|
--> $DIR/generic-enum-errors.rs:3:11
|
2024-02-23 11:45:44 +00:00
|
|
|
|
|
2025-07-01 20:20:14 +05:00
|
|
|
LL | enum Quux<T> {
|
2024-02-23 11:45:44 +00:00
|
|
|
| ^ unused type parameter
|
|
|
|
|
|
|
|
|
|
|
= help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
|
|
|
|
|
= help: if you intended `T` to be a const parameter, use `const T: /* Type */` instead
|
|
|
|
|
|
2021-01-02 19:45:11 +01:00
|
|
|
error[E0107]: missing generics for enum `Quux`
|
2025-07-01 20:20:14 +05:00
|
|
|
--> $DIR/generic-enum-errors.rs:8:11
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2025-07-01 20:20:14 +05:00
|
|
|
LL | fn foo(c: Quux) {
|
2021-02-18 21:01:44 +01:00
|
|
|
| ^^^^ expected 1 generic argument
|
2021-01-02 19:45:11 +01:00
|
|
|
|
|
2021-02-18 21:01:44 +01:00
|
|
|
note: enum defined here, with 1 generic parameter: `T`
|
2025-07-01 20:20:14 +05:00
|
|
|
--> $DIR/generic-enum-errors.rs:3:6
|
2021-01-02 19:45:11 +01:00
|
|
|
|
|
2025-07-01 20:20:14 +05:00
|
|
|
LL | enum Quux<T> {
|
2021-01-02 19:45:11 +01:00
|
|
|
| ^^^^ -
|
2021-02-18 21:01:44 +01:00
|
|
|
help: add missing generic argument
|
2021-01-02 19:45:11 +01:00
|
|
|
|
|
2025-07-01 20:20:14 +05:00
|
|
|
LL | fn foo(c: Quux<T>) {
|
2023-01-06 20:55:10 +09:00
|
|
|
| +++
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2023-10-31 13:45:26 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2023-10-31 13:45:26 +00:00
|
|
|
Some errors have detailed explanations: E0107, E0392.
|
|
|
|
|
For more information about an error, try `rustc --explain E0107`.
|