mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 12:44:40 +00:00
8b8cce16bf
Fix #84837.
9 lines
158 B
Rust
9 lines
158 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
|
|
}
|