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 --- .../missing-trait-bounds-for-method-call.rs | 31 ---------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/test/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.rs (limited to 'src/test/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.rs') diff --git a/src/test/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.rs b/src/test/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.rs deleted file mode 100644 index afd47f71c..000000000 --- a/src/test/ui/missing-trait-bounds/missing-trait-bounds-for-method-call.rs +++ /dev/null @@ -1,31 +0,0 @@ -#[derive(Default, PartialEq)] -struct Foo { - bar: Box<[T]>, -} - -trait Bar { - fn foo(&self) {} -} - -impl Bar for Foo {} - -impl Foo { - fn bar(&self) { - self.foo(); - //~^ ERROR the method - } -} - -struct Fin where T: Bar { - bar: Box<[T]>, -} - -impl Bar for Fin {} - -impl Fin { - fn bar(&self) { - self.foo(); - //~^ ERROR the method - } -} -fn main() {} -- cgit v1.2.3