]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/type-alias-impl-trait/issue-57611-trait-alias.stderr
move leak-check to during coherence, candidate eval
[rust.git] / src / test / ui / type-alias-impl-trait / issue-57611-trait-alias.stderr
index cc121ac89fb8d756033655c89870fb82000950dc..3cb8abcdcfd1751bbbda4a4276825aba44501714 100644 (file)
@@ -1,14 +1,3 @@
-error[E0631]: type mismatch in closure arguments
-  --> $DIR/issue-57611-trait-alias.rs:17:16
-   |
-LL |     type Bar = impl Baz<Self, Self>;
-   |                ^^^^^^^^^^^^^^^^^^^^ expected signature of `for<'r> fn(&'r X) -> _`
-...
-LL |         |x| x
-   |         ----- found signature of `fn(_) -> _`
-   |
-   = note: the return type of a function must have a statically known size
-
 error[E0271]: type mismatch resolving `for<'r> <[closure@$DIR/issue-57611-trait-alias.rs:21:9: 21:14] as std::ops::FnOnce<(&'r X,)>>::Output == &'r X`
   --> $DIR/issue-57611-trait-alias.rs:17:16
    |
@@ -17,7 +6,6 @@ LL |     type Bar = impl Baz<Self, Self>;
    |
    = note: the return type of a function must have a statically known size
 
-error: aborting due to 2 previous errors
+error: aborting due to previous error
 
-Some errors have detailed explanations: E0271, E0631.
-For more information about an error, try `rustc --explain E0271`.
+For more information about this error, try `rustc --explain E0271`.