fix allow(irrefutable_let_patterns)
This commit is contained in:
parent
d6f13c0e20
commit
84de498832
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue