]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/associated-types/hr-associated-type-bound-param-5.rs
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / associated-types / hr-associated-type-bound-param-5.rs
index fc3a85171e273eedcad878c6c8111cbd28641fd7..920aa835280701e159dfc2866ed41ecf11ae2c76 100644 (file)
@@ -25,14 +25,12 @@ where
 
 impl<S, T> X<'_, Vec<T>> for S {
     type U = str;
-    //~^ ERROR the trait bound `for<'b> <Box<T> as X<'b, Box<T>>>::U: Clone` is not satisfied
-    //~| ERROR the trait bound `for<'b> <Vec<T> as X<'b, Vec<T>>>::U: Clone` is not satisfied
+    //~^ ERROR the trait bound `str: Clone` is not satisfied
 }
 
 impl<S, T> X<'_, Box<T>> for S {
     type U = str;
-    //~^ ERROR the trait bound `for<'b> <Box<T> as X<'b, Box<T>>>::U: Clone` is not satisfied
-    //~| ERROR the trait bound `for<'b> <Vec<T> as X<'b, Vec<T>>>::U: Clone` is not satisfied
+    //~^ ERROR the trait bound `str: Clone` is not satisfied
 }
 
 pub fn main() {