Skip to content

Commit

Permalink
Moving allow statemate to the function block
Browse files Browse the repository at this point in the history
  • Loading branch information
Nokel81 authored Jun 15, 2018
1 parent 84de498 commit 01fbeb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#[allow(irrefutable_let_patterns)]
fn main() {
#[allow(irrefutable_let_patterns)]
if let _ = 5 {}
//~^ ERROR 15:12: 15:13: irrefutable if-let pattern [E0162]
}

0 comments on commit 01fbeb5

Please sign in to comment.