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