about summary refs log tree commit diff
path: root/tests/ui/coercion/issue-26905.stderr
blob: 17387ae992b42aa57449293756cb816132a6005c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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`.