]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/type-alias-impl-trait/impl-with-unconstrained-param.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / impl-with-unconstrained-param.stderr
index e8b677113dba779ad5703c4c21a4ddcd920374d4..8cf8fb1d16c4d8f997ecd6dd1f74dccb827aadcc 100644 (file)
@@ -1,15 +1,9 @@
-error[E0282]: type annotations needed
-  --> $DIR/impl-with-unconstrained-param.rs:14:23
+error[E0207]: the type parameter `T` is not constrained by the impl trait, self type, or predicates
+  --> $DIR/impl-with-unconstrained-param.rs:11:6
    |
-LL |     fn f() -> Self::I {}
-   |                       ^^ cannot infer type for type parameter `T`
+LL | impl<T> X for () {
+   |      ^ unconstrained type parameter
 
-error: could not find defining uses
-  --> $DIR/impl-with-unconstrained-param.rs:12:14
-   |
-LL |     type I = impl Sized;
-   |              ^^^^^^^^^^
-
-error: aborting due to 2 previous errors
+error: aborting due to previous error
 
-For more information about this error, try `rustc --explain E0282`.
+For more information about this error, try `rustc --explain E0207`.