]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/type-alias-impl-trait/bound_reduction2.rs
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / type-alias-impl-trait / bound_reduction2.rs
index cee8186dd8f8c432c3a2ccf10f49ae3822e120f5..4d2890b5de583c48bc63a8e6d727e4d3516f03f1 100644 (file)
@@ -7,13 +7,12 @@ trait TraitWithAssoc {
 }
 
 type Foo<V> = impl Trait<V>;
-//~^ ERROR could not find defining uses
 
 trait Trait<U> {}
 
 impl<W> Trait<W> for () {}
 
 fn foo_desugared<T: TraitWithAssoc>(_: T) -> Foo<T::Assoc> {
-    //~^ ERROR non-defining opaque type use in defining scope
     ()
+    //~^ ERROR non-defining opaque type use
 }