]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error2.stderr
Make the error for opaque types that have no hidden types a bit informative
[rust.git] / src / test / ui / type-alias-impl-trait / type-alias-impl-trait-with-cycle-error2.stderr
index 3947cc4d27055f5972f5b183beba416da1604957..3f3699ce5324aa984087c42f8fa103870ff25113 100644 (file)
@@ -1,8 +1,10 @@
-error: could not find defining uses
+error: unconstrained opaque type
   --> $DIR/type-alias-impl-trait-with-cycle-error2.rs:7:12
    |
 LL | type Foo = impl Bar<Foo, Item = Foo>;
    |            ^^^^^^^^^^^^^^^^^^^^^^^^^
+   |
+   = note: `Foo` must be used in combination with a concrete type within the same module
 
 error: aborting due to previous error