]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/overloaded-autoderef.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / overloaded-autoderef.rs
index 344b27ef35f0b77c5ce2890a9bb44e407d8a17f0..5831d500b83934497046f7a6ea397c1e1dddff1f 100644 (file)
@@ -8,9 +8,12 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::cell::RefCell;
 use std::rc::Rc;
-use std::string::String;
+use std::num::ToPrimitive;
 
 #[derive(PartialEq, Show)]
 struct Point {
@@ -31,7 +34,6 @@ pub fn main() {
     assert_eq!((i_value, *i.borrow()), (2, 5));
 
     let s = Rc::new("foo".to_string());
-    assert!(s.equiv(&("foo")));
     assert_eq!(s.as_slice(), "foo");
 
     let mut_s = Rc::new(RefCell::new(String::from_str("foo")));