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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
119 B
Rust
Raw Normal View History

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