1 // Pin's PartialEq implementation allowed to access the pointer allowing for
2 // unsoundness by using Rc::get_mut to move value within Rc.
3 // See https://internals.rust-lang.org/t/unsoundness-in-pin/11311/73 for more details.
11 impl Deref for Apple {
13 fn deref(&self) -> &Apple {
18 impl PartialEq<Rc<Apple>> for Apple {
19 fn eq(&self, _rc: &Rc<Apple>) -> bool {
25 let _ = Pin::new(Apple) == Rc::pin(Apple);
26 //~^ ERROR type mismatch resolving