2024-02-15 17:12:05 +00:00
|
|
|
error[E0392]: type parameter `T` is never used
|
|
|
|
--> $DIR/E0374.rs:4:12
|
|
|
|
|
|
|
|
|
LL | struct Foo<T: ?Sized> {
|
|
|
|
| ^ unused type parameter
|
|
|
|
|
|
|
|
|
= help: consider removing `T`, referring to it in a field, or using a marker such as `PhantomData`
|
|
|
|
|
2023-09-13 17:42:56 +00:00
|
|
|
error[E0374]: the trait `CoerceUnsized` may only be implemented for a coercion between structures
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/E0374.rs:8:1
|
2018-02-08 03:35:35 +00:00
|
|
|
|
|
2023-10-06 20:35:52 +00:00
|
|
|
LL | / impl<T, U> CoerceUnsized<Foo<U>> for Foo<T>
|
|
|
|
LL | | where T: CoerceUnsized<U> {}
|
|
|
|
| |_____________________________^
|
2023-09-13 17:42:56 +00:00
|
|
|
|
|
|
|
|
= note: expected a single field to be coerced, none found
|
2018-02-08 03:35:35 +00:00
|
|
|
|
2024-02-02 08:36:46 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2018-02-08 03:35:35 +00:00
|
|
|
|
2024-02-02 08:36:46 +00:00
|
|
|
Some errors have detailed explanations: E0374, E0392.
|
|
|
|
For more information about an error, try `rustc --explain E0374`.
|