]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/parser/expr-as-stmt.rs
Rollup merge of #75485 - RalfJung:pin, r=nagisa
[rust.git] / src / test / ui / parser / expr-as-stmt.rs
index b526c17488eaf72ee218a67bbda59cf5e50d9303..93baa8278f890b7bd431c0d86bf63c1d001d5721 100644 (file)
@@ -25,12 +25,6 @@ fn baz() -> i32 {
     //~^ ERROR mismatched types
 }
 
-fn qux(a: Option<u32>, b: Option<u32>) -> bool {
-    if let Some(x) = a { true } else { false }
-    && //~ ERROR expected expression
-    if let Some(y) = a { true } else { false }
-}
-
 fn moo(x: u32) -> bool {
     match x {
         _ => 1,