diff --git a/src/test/compile-fail/feature-gate-without_gate_irrefutable_pattern.rs b/src/test/compile-fail/feature-gate-without_gate_irrefutable_pattern.rs index 7cd026e21d6d..7bcddbb6a2f1 100644 --- a/src/test/compile-fail/feature-gate-without_gate_irrefutable_pattern.rs +++ b/src/test/compile-fail/feature-gate-without_gate_irrefutable_pattern.rs @@ -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] }