2023-02-25 00:11:58 -06:00
|
|
|
error[E0119]: conflicting implementations of trait `CoerceUnsized<&Wrapper<_>>` for type `&Wrapper<_>`
|
2023-11-23 06:25:41 -06:00
|
|
|
--> $DIR/E0476.rs:11:1
|
2023-02-25 00:11:58 -06:00
|
|
|
|
|
|
|
|
LL | impl<'a, 'b, T, S> CoerceUnsized<&'a Wrapper<T>> for &'b Wrapper<S> where S: Unsize<T> {}
|
2023-10-06 15:35:52 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-02-25 00:11:58 -06:00
|
|
|
|
|
|
|
|
= note: conflicting implementation in crate `core`:
|
|
|
|
- impl<'a, 'b, T, U> CoerceUnsized<&'a U> for &'b T
|
|
|
|
where 'b: 'a, T: Unsize<U>, T: ?Sized, U: ?Sized;
|
|
|
|
|
|
|
|
error[E0476]: lifetime of the source pointer does not outlive lifetime bound of the object type
|
2023-11-23 06:25:41 -06:00
|
|
|
--> $DIR/E0476.rs:11:1
|
2023-02-25 00:11:58 -06:00
|
|
|
|
|
|
|
|
LL | impl<'a, 'b, T, S> CoerceUnsized<&'a Wrapper<T>> for &'b Wrapper<S> where S: Unsize<T> {}
|
2023-10-06 15:35:52 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2023-02-25 00:11:58 -06:00
|
|
|
|
|
|
|
|
note: object type is valid for the lifetime `'a` as defined here
|
2023-11-23 06:25:41 -06:00
|
|
|
--> $DIR/E0476.rs:11:6
|
2023-02-25 00:11:58 -06:00
|
|
|
|
|
|
|
|
LL | impl<'a, 'b, T, S> CoerceUnsized<&'a Wrapper<T>> for &'b Wrapper<S> where S: Unsize<T> {}
|
|
|
|
| ^^
|
|
|
|
note: source pointer is only valid for the lifetime `'b` as defined here
|
2023-11-23 06:25:41 -06:00
|
|
|
--> $DIR/E0476.rs:11:10
|
2023-02-25 00:11:58 -06:00
|
|
|
|
|
|
|
|
LL | impl<'a, 'b, T, S> CoerceUnsized<&'a Wrapper<T>> for &'b Wrapper<S> where S: Unsize<T> {}
|
|
|
|
| ^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
Some errors have detailed explanations: E0119, E0476.
|
|
|
|
For more information about an error, try `rustc --explain E0119`.
|