rust/tests/ui/mut/no-mut-lint-for-desugared-mut.rs
2024-02-16 20:02:50 +00:00

9 lines
120 B
Rust

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