Moving allow statemate to the function block

This commit is contained in:
Sebastian Malton
2018-06-15 10:56:12 -04:00
committed by GitHub
parent 84de498832
commit 01fbeb5b7a
@@ -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]
}