custom message for refutable patterns in for loops
This commit is contained in:
parent
5e1820f346
commit
76362f0a0e
6 changed files with 38 additions and 9 deletions
|
|
@ -8,7 +8,6 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
|
||||
fn main() {
|
||||
for
|
||||
&1is //~ ERROR refutable pattern in `for` loop binding
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue