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 --- .../ui/did_you_mean/compatible-variants-in-pat.rs | 41 ---------------------- 1 file changed, 41 deletions(-) delete mode 100644 src/test/ui/did_you_mean/compatible-variants-in-pat.rs (limited to 'src/test/ui/did_you_mean/compatible-variants-in-pat.rs') diff --git a/src/test/ui/did_you_mean/compatible-variants-in-pat.rs b/src/test/ui/did_you_mean/compatible-variants-in-pat.rs deleted file mode 100644 index 09e12dab2..000000000 --- a/src/test/ui/did_you_mean/compatible-variants-in-pat.rs +++ /dev/null @@ -1,41 +0,0 @@ -enum Foo { - Bar(Bar), -} -struct Bar { - x: i32, -} - -fn a(f: Foo) { - match f { - Bar { x } => { - //~^ ERROR mismatched types - //~| HELP try wrapping - } - } -} - -struct S; - -fn b(s: Option) { - match s { - S => { - //~^ ERROR mismatched types - //~| HELP try wrapping - //~| HELP introduce a new binding instead - } - _ => {} - } -} - -fn c(s: Result) { - match s { - S => { - //~^ ERROR mismatched types - //~| HELP try wrapping - //~| HELP introduce a new binding instead - } - _ => {} - } -} - -fn main() {} -- cgit v1.2.3