]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0375.stderr
Rollup merge of #97915 - tbu-:pr_os_string_fmt_write, r=joshtriplett
[rust.git] / src / test / ui / error-codes / E0375.stderr
1 error[E0375]: implementing the trait `CoerceUnsized` requires multiple coercions
2   --> $DIR/E0375.rs:10:12
3    |
4 LL | impl<T, U> CoerceUnsized<Foo<U, T>> for Foo<T, U> {}
5    |            ^^^^^^^^^^^^^^^^^^^^^^^^ requires multiple coercions
6    |
7    = note: `CoerceUnsized` may only be implemented for a coercion between structures with one field being coerced
8    = note: currently, 2 fields need coercions: `b` (`T` to `U`), `c` (`U` to `T`)
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0375`.