]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/type-alias-impl-trait/type-alias-impl-trait-with-cycle-error2.rs
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.rs
index f3898bca64b9b3b94f3ebb813c45313d92ab55d0..7c7a1b405bcdcd5caedbfe50e676eb72f02115b9 100644 (file)
@@ -5,7 +5,7 @@ pub trait Bar<T> {
 }
 
 type Foo = impl Bar<Foo, Item = Foo>;
-//~^ ERROR: could not find defining uses
+//~^ ERROR: unconstrained opaque type
 
 fn crash(x: Foo) -> Foo {
     x