Skip to content

Commit

Permalink
actually they should be equal
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Feb 13, 2019
1 parent b2e851d commit 3fdee95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/run-pass/rc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) });
}

Expand Down

0 comments on commit 3fdee95

Please sign in to comment.