fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
648 B13 linesraw
1error[E0271]: type mismatch resolving `<std::rc::Rc<Apple> as std::ops::Deref>::Target == std::rc::Rc<Apple>`
2  --> $DIR/issue-67039-unsound-pin-partialeq.rs:25:29
3   |
4LL |     let _ = Pin::new(Apple) == Rc::pin(Apple);
5   |                             ^^ expected struct `Apple`, found struct `std::rc::Rc`
6   |
7   = note: expected type `Apple`
8            found struct `std::rc::Rc<Apple>`
9   = note: required because of the requirements on the impl of `std::cmp::PartialEq<std::pin::Pin<std::rc::Rc<Apple>>>` for `std::pin::Pin<Apple>`
10
11error: aborting due to previous error
12
13For more information about this error, try `rustc --explain E0271`.