From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/issues/issue-21974.rs | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 src/test/ui/issues/issue-21974.rs (limited to 'src/test/ui/issues/issue-21974.rs') diff --git a/src/test/ui/issues/issue-21974.rs b/src/test/ui/issues/issue-21974.rs deleted file mode 100644 index f7c659be1..000000000 --- a/src/test/ui/issues/issue-21974.rs +++ /dev/null @@ -1,18 +0,0 @@ -// Test that (for now) we report an ambiguity error here, because -// specific trait relationships are ignored for the purposes of trait -// matching. This behavior should likely be improved such that this -// test passes. See #21974 for more details. - -trait Foo { - fn foo(self); -} - -fn foo<'a,'b,T>(x: &'a T, y: &'b T) - where &'a T : Foo, //~ ERROR type annotations needed - &'b T : Foo -{ - x.foo(); - y.foo(); -} - -fn main() { } -- cgit v1.2.3