2021-12-06 05:33:31 -06:00
|
|
|
#![feature(stmt_expr_attributes)]
|
2023-12-28 12:33:07 -06:00
|
|
|
#![allow(
|
|
|
|
clippy::never_loop,
|
|
|
|
clippy::while_immutable_condition,
|
|
|
|
clippy::redundant_pattern_matching
|
|
|
|
)]
|
2021-12-06 05:33:31 -06:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
#[clippy::author]
|
|
|
|
for y in 0..10 {
|
|
|
|
let z = y;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[clippy::author]
|
|
|
|
for _ in 0..10 {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[clippy::author]
|
|
|
|
'label: for _ in 0..10 {
|
|
|
|
break 'label;
|
|
|
|
}
|
|
|
|
|
|
|
|
let a = true;
|
|
|
|
|
|
|
|
#[clippy::author]
|
|
|
|
while a {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[clippy::author]
|
|
|
|
while let true = a {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[clippy::author]
|
|
|
|
loop {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|