rust/tests/ui/for-loop-while/for-loop-mut-ref-element.rs
2024-02-16 20:02:50 +00:00

7 lines
139 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) {}
}