mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
Remove wrong assertion.
This commit is contained in:
parent
409661936f
commit
84cb7ecbc1
@ -334,9 +334,6 @@ impl<'p, 'tcx> MatchVisitor<'_, 'p, 'tcx> {
|
||||
let refutable = !is_let_irrefutable(&mut ncx, local_lint_level, tpat);
|
||||
Some((expr.span, refutable))
|
||||
}
|
||||
ExprKind::LogicalOp { op: LogicalOp::And, .. } => {
|
||||
bug!()
|
||||
}
|
||||
_ => None,
|
||||
}
|
||||
};
|
||||
|
10
tests/ui/match/guards-parenthesized-and.rs
Normal file
10
tests/ui/match/guards-parenthesized-and.rs
Normal file
@ -0,0 +1,10 @@
|
||||
// check-pass
|
||||
|
||||
fn main() {
|
||||
let c = 1;
|
||||
let w = "T";
|
||||
match Some(5) {
|
||||
None if c == 1 && (w != "Y" && w != "E") => {}
|
||||
_ => panic!(),
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user