]> git.lizzy.rs Git - rust.git/commitdiff
actually they should be equal
authorRalf Jung <post@ralfj.de>
Fri, 8 Feb 2019 22:48:37 +0000 (23:48 +0100)
committerRalf Jung <post@ralfj.de>
Fri, 15 Feb 2019 08:35:55 +0000 (09:35 +0100)
tests/run-pass/rc.rs

index af68e5cfd1faa76c6ae049eeceae739ebbe847cd..164842ab4d976e0b27b69ac263b41aa8947bb312 100644 (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) });
 }