]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/type-alias-impl-trait/multiple-def-uses-in-one-fn.rs
Auto merge of #95454 - randomicon00:fix95444, r=wesleywiser
[rust.git] / src / test / ui / type-alias-impl-trait / multiple-def-uses-in-one-fn.rs
index da845e86147b7ffb620f880936aae59069a2095f..46bac5a34f5c08408bf76071e77e40a1ed9cce7e 100644 (file)
@@ -7,8 +7,8 @@
 type X<A, B> = impl Into<&'static A>;
 
 fn f<A, B: 'static>(a: &'static A, b: B) -> (X<A, B>, X<B, A>) {
-    //~^ ERROR the trait bound `&'static B: From<&A>` is not satisfied
     (a, a)
+    //~^ ERROR the trait bound `&'static B: From<&A>` is not satisfied
 }
 
 fn main() {