hygiene for for loops, if let, while let
and some unrelated test cleanups
This commit is contained in:
parent
e0c74868c3
commit
08f3752270
8 changed files with 94 additions and 48 deletions
|
|
@ -9,7 +9,5 @@
|
|||
// except according to those terms.
|
||||
|
||||
fn main() {
|
||||
for
|
||||
&1 //~ ERROR refutable pattern in `for` loop binding
|
||||
in [1].iter() {}
|
||||
for &1 in [1].iter() {} //~ ERROR refutable pattern in `for` loop binding
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue