fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
454 B11 linesraw
1error[E0377]: the trait `CoerceUnsized` may only be implemented for a coercion between structures
2  --> $DIR/E0377.rs:12:1
3   |
4LL | impl<T, U> CoerceUnsized<Bar<U>> for Foo<T> where T: CoerceUnsized<U> {}
5   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: expected coercion between the same definition; expected `Foo`, found `Bar`
8
9error: aborting due to previous error
10
11For more information about this error, try `rustc --explain E0377`.