rust/tests/ui/error-codes/E0375.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
548 B
Plaintext
Raw Normal View History

2018-02-08 03:35:35 +00:00
error[E0375]: implementing the trait `CoerceUnsized` requires multiple coercions
2019-04-22 16:35:37 +00:00
--> $DIR/E0375.rs:10:12
2018-02-08 03:35:35 +00:00
|
2018-02-23 00:42:32 +00:00
LL | impl<T, U> CoerceUnsized<Foo<U, T>> for Foo<T, U> {}
2018-02-08 03:35:35 +00:00
| ^^^^^^^^^^^^^^^^^^^^^^^^ requires multiple coercions
|
= note: `CoerceUnsized` may only be implemented for a coercion between structures with one field being coerced
= note: currently, 2 fields need coercions: `b` (`T` to `U`), `c` (`U` to `T`)
2018-02-08 03:35:35 +00:00
error: aborting due to previous error
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0375`.