]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/borrowck-move-out-of-vec-tail.rs
test: Remove all uses of `~str` from the test suite.
[rust.git] / src / test / compile-fail / borrowck-move-out-of-vec-tail.rs
index 317c30c6e19b4459f0a463fb0b5127e62ae72ebb..a30d8d44ca072b051e3e96655e0e07fabcb1fd01 100644 (file)
 
 #[deriving(Clone)]
 struct Foo {
-    string: ~str
+    string: StrBuf
 }
 
 pub fn main() {
     let x = vec!(
-        Foo { string: "foo".to_owned() },
-        Foo { string: "bar".to_owned() },
-        Foo { string: "baz".to_owned() }
+        Foo { string: "foo".to_strbuf() },
+        Foo { string: "bar".to_strbuf() },
+        Foo { string: "baz".to_strbuf() }
     );
     let x: &[Foo] = x.as_slice();
     match x {