]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/impl-trait/recursive-type-alias-impl-trait-declaration-too-subtle-2.rs
Auto merge of #95604 - nbdd0121:used2, r=petrochenkov
[rust.git] / src / test / ui / impl-trait / recursive-type-alias-impl-trait-declaration-too-subtle-2.rs
index 6b200d7e3a89eeb6c615ba0b5dc6f71fc476d178..621c4ea6e0d4822010620f79302bf3a13e3c6d7b 100644 (file)
@@ -5,13 +5,14 @@
 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 {
-    Bar //~ ERROR can't compare `Bar` with `(Bar, i32)`
+    Bar
 }
 
 fn main() {}