Skip to content

Commit

Permalink
fix allow(irrefutable_let_patterns)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Jun 15, 2018
1 parent d6f13c0 commit 84de498
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/test/run-pass/allow_irrefutable_let_patterns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@
#![feature(irrefutable_let_patterns)]

// must-compile-successfully-irrefutable_let_patterns_with_gate
#[allow(irrefutable_let_patterns)]
fn main() {
#[allow(irrefutable_let_patterns)]
if let _ = 5 {}

#[allow(irrefutable_let_patterns)]
while let _ = 5 {
break;
}
Expand Down

0 comments on commit 84de498

Please sign in to comment.