rust/tests/ui/for-loop-while/for-loop-mut-ref-element.rs
2023-01-11 09:32:08 +00:00

7 lines
138 B
Rust

// run-pass
// Tests that for loops can bind elements as mutable references
fn main() {
for ref mut _a in std::iter::once(true) {}
}