actually they should be equal
This commit is contained in:
parent
2c3ee678b1
commit
1921fa5766
1 changed files with 1 additions and 1 deletions
|
|
@ -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) });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue