]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/bad-const-type.rs
test: Remove all uses of `~str` from the test suite.
[rust.git] / src / test / compile-fail / bad-const-type.rs
index 92643eca3c83b2be0aa1155b89ff26dc61e40c3a..ab5735150fdc4666bd103426a14fe70a76e90c16 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// error-pattern:expected `~str` but found `int`
+// error-pattern:expected `std::strbuf::StrBuf` but found `int`
 
-static i: ~str = 10i;
-fn main() { println!("{:?}", i); }
+static i: StrBuf = 10i;
+fn main() { println!("{}", i); }