]> git.proxmox.com Git - rustc.git/blobdiff - tests/ui/impl-trait/in-trait/specialization-broken.rs
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / impl-trait / in-trait / specialization-broken.rs
index 9d27d3710a6016e2d5f9b67bd2082824e83dfdf1..2fcffdf3f9a298f50daaed33566b47c498b932d3 100644 (file)
@@ -15,6 +15,7 @@ where
 {
     fn bar(&self) -> U {
         //~^ ERROR method `bar` has an incompatible type for trait
+        //~| ERROR method with return-position `impl Trait` in trait cannot be specialized
         *self
     }
 }