2018-02-07 19:35:35 -08:00
|
|
|
error[E0374]: the trait `CoerceUnsized` may only be implemented for a coercion between structures with one field being coerced, none found
|
|
|
|
--> $DIR/E0374.rs:18:1
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | / impl<T, U> CoerceUnsized<Foo<U>> for Foo<T> //~ ERROR E0374
|
|
|
|
LL | | where T: CoerceUnsized<U> {}
|
2018-02-07 19:35:35 -08:00
|
|
|
| |________________________________^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0374`.
|