]> git.lizzy.rs Git - rust.git/blob - src/test/ui/for-loop-while/for-loop-mut-ref-element.rs
Rollup merge of #94577 - RalfJung:simd-miri, r=scottmcm
[rust.git] / src / test / ui / for-loop-while / for-loop-mut-ref-element.rs
1 // run-pass
2 // Tests that for loops can bind elements as mutable references
3
4 fn main() {
5     for ref mut _a in std::iter::once(true) {}
6 }