]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/minus-string.rs
test: Remove all uses of `~str` from the test suite.
[rust.git] / src / test / compile-fail / minus-string.rs
index 636debc77e01bcbd466f17d985a840dda84746e5..b194b2d833164f2cd55778bbf2b2b8b2db056228 100644 (file)
@@ -8,6 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// error-pattern:cannot apply unary operator `-` to type `~str`
+// error-pattern:cannot apply unary operator `-` to type `std::strbuf::StrBuf`
 
-fn main() { -"foo".to_owned(); }
+fn main() { -"foo".to_strbuf(); }