]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-67039-unsound-pin-partialeq.stderr
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[rust.git] / src / test / ui / issues / issue-67039-unsound-pin-partialeq.stderr
1 error[E0271]: type mismatch resolving `<Rc<Apple> as Deref>::Target == Rc<Apple>`
2   --> $DIR/issue-67039-unsound-pin-partialeq.rs:25:29
3    |
4 LL |     let _ = Pin::new(Apple) == Rc::pin(Apple);
5    |                             ^^ expected struct `Apple`, found struct `Rc`
6    |
7    = note: expected struct `Apple`
8               found struct `Rc<Apple>`
9    = note: required because of the requirements on the impl of `PartialEq<Pin<Rc<Apple>>>` for `Pin<Apple>`
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0271`.