2020-09-02 07:40:56 +00:00
|
|
|
error[E0271]: type mismatch resolving `<Rc<Apple> as Deref>::Target == Rc<Apple>`
|
2019-12-05 12:21:51 +00:00
|
|
|
--> $DIR/issue-67039-unsound-pin-partialeq.rs:25:29
|
|
|
|
|
|
|
|
|
LL | let _ = Pin::new(Apple) == Rc::pin(Apple);
|
2020-09-02 07:40:56 +00:00
|
|
|
| ^^ expected struct `Apple`, found struct `Rc`
|
2019-12-05 12:21:51 +00:00
|
|
|
|
|
|
|
|
= note: expected type `Apple`
|
2020-09-02 07:40:56 +00:00
|
|
|
found struct `Rc<Apple>`
|
|
|
|
= note: required because of the requirements on the impl of `PartialEq<Pin<Rc<Apple>>>` for `Pin<Apple>`
|
2019-12-05 12:21:51 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0271`.
|