mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-10 00:47:45 +00:00
18 lines
634 B
Plaintext
18 lines
634 B
Plaintext
error[E0375]: implementing `CoerceUnsized` does not allow multiple fields to be coerced
|
|
--> $DIR/issue-26905.rs:16:40
|
|
|
|
|
LL | impl<T: ?Sized + Unsize<U>, U: ?Sized> CoerceUnsized<MyRc<U>> for MyRc<T>{ }
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: the trait `CoerceUnsized` may only be implemented when a single field is being coerced
|
|
--> $DIR/issue-26905.rs:12:5
|
|
|
|
|
LL | _ptr: *const T,
|
|
| ^^^^^^^^^^^^^^
|
|
LL | _boo: NotPhantomData<T>,
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0375`.
|