actually they should be equal

This commit is contained in:
Ralf Jung 2019-02-08 23:48:37 +01:00
parent 2c3ee678b1
commit 1921fa5766

View file

@ -65,7 +65,7 @@ fn rc_fat_ptr_eq() {
let p = Rc::new(1) as Rc<Debug>;
let a: *const Debug = &*p;
let r = Rc::into_raw(p);
let _b = a == r;
assert!(a == r);
drop(unsafe { Rc::from_raw(r) });
}