]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/impl-trait/universal_wrong_bounds.rs
Auto merge of #83339 - Aaron1011:deep-recollect, r=petrochenkov
[rust.git] / src / test / ui / impl-trait / universal_wrong_bounds.rs
index 56a13ea257e88c6906e405ac96ed301d669604de..2182506c7b71991c27192af037913757199ab55f 100644 (file)
@@ -6,9 +6,8 @@ fn foo(f: impl Display + Clone) -> String {
     wants_clone(f);
 }
 
-fn wants_debug(g: impl Debug) { } //~ ERROR cannot find
-fn wants_display(g: impl Debug) { } //~ ERROR cannot find
+fn wants_debug(g: impl Debug) { } //~ ERROR expected trait, found derive macro `Debug`
+fn wants_display(g: impl Debug) { } //~ ERROR expected trait, found derive macro `Debug`
 fn wants_clone(g: impl Clone) { }
 
-fn main() {
-}
+fn main() {}