]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle-2.rs
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / impl-trait / recursive-type-alias-impl-trait-declaration-too-subtle-2.rs
index 621c4ea6e0d4822010620f79302bf3a13e3c6d7b..af9dfe25bb4ce0b4ecaeb198800be7c6e81bd25b 100644 (file)
@@ -5,13 +5,13 @@
 struct Bar;
 
 impl PartialEq<(Foo, i32)> for Bar {
-//~^ ERROR cannot implement trait on type alias impl trait
     fn eq(&self, _other: &(Foo, i32)) -> bool {
         true
     }
 }
 
 fn foo() -> Foo {
+    //~^ ERROR can't compare `Bar` with `(Bar, i32)`
     Bar
 }