fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
548 B12 linesraw
1error[E0375]: implementing the trait `CoerceUnsized` requires multiple coercions
2  --> $DIR/E0375.rs:10:12
3   |
4LL | 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
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0375`.