fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
656 B12 linesraw
1error[E0375]: implementing the trait `CoerceUnsized` requires multiple coercions
2  --> $DIR/issue-26905.rs:16:40
3   |
4LL | impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<MyRc<U>> for MyRc<T>{ }
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: `_ptr` (`*const T` to `*const U`), `_boo` (`NotPhantomData<T>` to `NotPhantomData<U>`)
9
10error: aborting due to previous error
11
12For more information about this error, try `rustc --explain E0375`.