2023-09-13 20:42:56 +03:00
|
|
|
error[E0377]: the trait `CoerceUnsized` may only be implemented for a coercion between structures
|
2022-12-20 18:31:15 +13:00
|
|
|
--> $DIR/E0377.rs:12:1
|
|
|
|
|
|
|
|
|
LL | impl<T, U> CoerceUnsized<Bar<U>> for Foo<T> where T: CoerceUnsized<U> {}
|
2023-10-06 20:35:52 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-09-13 20:42:56 +03:00
|
|
|
|
|
|
|
|
= note: expected coercion between the same definition; expected `Foo`, found `Bar`
|
2022-12-20 18:31:15 +13:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0377`.
|