]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/type-alias-impl-trait/declared_but_not_defined_in_scope.stderr
Make the error for opaque types that have no hidden types a bit informative
[rust.git] / src / test / ui / type-alias-impl-trait / declared_but_not_defined_in_scope.stderr
index 4564ef6b8f6a083937ccbcd81712e12ac1aa2a2b..d61561d3ea937cc40669a317c36c05ce80e78770 100644 (file)
@@ -1,8 +1,10 @@
-error: could not find defining uses
+error: unconstrained opaque type
   --> $DIR/declared_but_not_defined_in_scope.rs:7:20
    |
 LL |     pub type Boo = impl ::std::fmt::Debug;
    |                    ^^^^^^^^^^^^^^^^^^^^^^
+   |
+   = note: `Boo` must be used in combination with a concrete type within the same module
 
 error[E0308]: mismatched types
   --> $DIR/declared_but_not_defined_in_scope.rs:11:5