]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/str-mut-idx.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / str-mut-idx.rs
index ec6a14778a463f22f266b9f6aa66654b52935d5f..8851e5e07973cd597d9cfcd3a390976c58ae9651 100644 (file)
@@ -12,11 +12,11 @@ fn bot<T>() -> T { loop {} }
 
 fn mutate(s: &mut str) {
     s[1..2] = bot();
-    //~^ ERROR `core::marker::Sized` is not implemented for the type `str`
-    //~| ERROR `core::marker::Sized` is not implemented for the type `str`
+    //~^ ERROR `str: std::marker::Sized` is not satisfied
+    //~| ERROR `str: std::marker::Sized` is not satisfied
     s[1usize] = bot();
-    //~^ ERROR `core::ops::Index<usize>` is not implemented for the type `str`
-    //~| ERROR `core::ops::IndexMut<usize>` is not implemented for the type `str`
+    //~^ ERROR `str: std::ops::Index<usize>` is not satisfied
+    //~| ERROR `str: std::ops::IndexMut<usize>` is not satisfied
 }
 
 pub fn main() {}