2018-07-15 14:11:54 -07:00
|
|
|
error[E0308]: mismatched types
|
2023-10-31 13:45:26 +00:00
|
|
|
--> $DIR/issue-31910.rs:3:9
|
2018-07-15 14:11:54 -07:00
|
|
|
|
|
|
|
|
|
LL | X = Trait::Number,
|
2019-11-15 09:37:01 -08:00
|
|
|
| ^^^^^^^^^^^^^ expected `isize`, found `i32`
|
2018-07-15 14:11:54 -07:00
|
|
|
|
2024-02-01 15:58:07 +01:00
|
|
|
error[E0392]: type parameter `T` is never used
|
2023-10-31 13:45:26 +00:00
|
|
|
--> $DIR/issue-31910.rs:1:11
|
|
|
|
|
|
|
|
|
|
|
LL | enum Enum<T: Trait> {
|
2024-02-01 15:58:07 +01:00
|
|
|
| ^ unused type parameter
|
2023-10-31 13:45:26 +00:00
|
|
|
|
|
|
|
|
|
= help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
|
|
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-07-15 14:11:54 -07:00
|
|
|
|
2023-10-31 13:45:26 +00:00
|
|
|
Some errors have detailed explanations: E0308, E0392.
|
|
|
|
|
For more information about an error, try `rustc --explain E0308`.
|