mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
8 lines
159 B
Rust
8 lines
159 B
Rust
//@ run-rustfix
|
|
fn main() {
|
|
let v = &mut Vec::<i32>::new();
|
|
for _ in v {} //~ ERROR E0277
|
|
|
|
let v = &mut [1u8];
|
|
for _ in v {} //~ ERROR E0277
|
|
}
|