]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/issue-16048.rs
Imported Upstream version 1.0.0~beta.3
[rustc.git] / src / test / compile-fail / issue-16048.rs
index dbd3336962b76296709557e20a671a29ab779902..46b7b933d8796fd38ababd396a2a3a833f30827f 100644 (file)
@@ -29,7 +29,7 @@ impl<'a> Test<'a> for Foo<'a> {
 impl<'a> NoLifetime for Foo<'a> {
     fn get<'p, T : Test<'a>>(&self) -> T {
 //~^ ERROR lifetime parameters or bounds on method `get` do not match the trait declaration
-        return *self as T; //~ ERROR non-scalar cast: `Foo<'a>` as `T`
+        return *self as T;
     }
 }