]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/kindck/kindck-impl-type-params.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / kindck / kindck-impl-type-params.rs
index c4f90f36acfc25f6759cf88edb0a44630d1cf3de..4d4d191b6aaee0283d52f099871f3fb148bbea42 100644 (file)
@@ -17,14 +17,14 @@ fn f<T>(val: T) {
     let t: S<T> = S(marker::PhantomData);
     let a = &t as &dyn Gettable<T>;
     //~^ ERROR `T` cannot be sent between threads safely
-    //~| ERROR : std::marker::Copy` is not satisfied
+    //~| ERROR : Copy` is not satisfied
 }
 
 fn g<T>(val: T) {
     let t: S<T> = S(marker::PhantomData);
     let a: &dyn Gettable<T> = &t;
     //~^ ERROR `T` cannot be sent between threads safely
-    //~| ERROR : std::marker::Copy` is not satisfied
+    //~| ERROR : Copy` is not satisfied
 }
 
 fn foo<'a>() {
@@ -36,7 +36,7 @@ fn foo<'a>() {
 fn foo2<'a>() {
     let t: Box<S<String>> = box S(marker::PhantomData);
     let a = t as Box<dyn Gettable<String>>;
-    //~^ ERROR : std::marker::Copy` is not satisfied
+    //~^ ERROR : Copy` is not satisfied
 }
 
 fn foo3<'a>() {
@@ -44,7 +44,7 @@ fn foo3<'a>() {
 
     let t: Box<S<Foo>> = box S(marker::PhantomData);
     let a: Box<dyn Gettable<Foo>> = t;
-    //~^ ERROR : std::marker::Copy` is not satisfied
+    //~^ ERROR : Copy` is not satisfied
 }
 
 fn main() { }