summaryrefslogtreecommitdiffstats
path: root/tests/ui/for-loop-while/for-loop-mut-ref-element.rs
blob: a3d82ace9e25e6dbbf83b059bcdb5efaa2895ddd (plain)
1
2
3
4
5
6
// run-pass
// Tests that for loops can bind elements as mutable references

fn main() {
    for ref mut _a in std::iter::once(true) {}
}