rust/tests/ui/mut/no-mut-lint-for-desugared-m...

9 lines
120 B
Rust

//@ run-pass
#![deny(unused_mut)]
#![allow(unreachable_code)]
fn main() {
for _ in { return (); 0..3 } {} // ok
}