]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/trait-coercion-generic-bad.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / trait-coercion-generic-bad.rs
index b25af522b2476e35759af8a255ade6225020a8c0..dd64085f6f6668a17d8ab42553a0a61b0ab2659f 100644 (file)
@@ -25,6 +25,6 @@ impl Trait<&'static str> for Struct {
 fn main() {
     // FIXME (#22405): Replace `Box::new` with `box` here when/if possible.
     let s: Box<Trait<isize>> = Box::new(Struct { person: "Fred" });
-    //~^ ERROR the trait `Trait<isize>` is not implemented for the type `Struct`
+    //~^ ERROR `Struct: Trait<isize>` is not satisfied
     s.f(1);
 }