diff options
| author | Sebastian Malton <sebastian@malton.name> | 2018-06-15 10:56:12 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-15 10:56:12 -0400 |
| commit | 01fbeb5b7ac85a67c9b46acbed5d9eeee4e844ce (patch) | |
| tree | 6089f51a4a6881bb2b01eb34637ac78f8f3b40a5 /src | |
| parent | 84de498832cfc12bf2e4e71eb7bdcd8f0fa7a38d (diff) | |
| download | rust-01fbeb5b7ac85a67c9b46acbed5d9eeee4e844ce.tar.gz rust-01fbeb5b7ac85a67c9b46acbed5d9eeee4e844ce.zip | |
Moving allow statemate to the function block
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/compile-fail/feature-gate-without_gate_irrefutable_pattern.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 7cd026e21d6..7bcddbb6a2f 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] } |
