rust/tests/ui/for/for-loop-refutable-pattern-error-message.rs
2023-01-11 09:32:08 +00:00

4 lines
92 B
Rust

fn main() {
for &1 in [1].iter() {} //~ ERROR refutable pattern in `for` loop binding
}