diff options
Diffstat (limited to 'src/test/ui/parser/expr-as-stmt-2.rs')
-rw-r--r-- | src/test/ui/parser/expr-as-stmt-2.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test/ui/parser/expr-as-stmt-2.rs b/src/test/ui/parser/expr-as-stmt-2.rs deleted file mode 100644 index 3a18bdc3b..000000000 --- a/src/test/ui/parser/expr-as-stmt-2.rs +++ /dev/null @@ -1,10 +0,0 @@ -// This is not autofixable because we give extra suggestions to end the first expression with `;`. -fn foo(a: Option<u32>, b: Option<u32>) -> bool { - if let Some(x) = a { true } else { false } - //~^ ERROR mismatched types - //~| ERROR mismatched types - && //~ ERROR mismatched types - if let Some(y) = a { true } else { false } -} - -fn main() {} |