2023-04-20 09:37:15 -05:00
|
|
|
//@run-rustfix
|
2022-11-10 06:19:15 -06:00
|
|
|
#![allow(
|
|
|
|
unused,
|
|
|
|
clippy::unused_unit,
|
|
|
|
clippy::unnecessary_operation,
|
|
|
|
clippy::no_effect,
|
|
|
|
clippy::single_element_loop
|
|
|
|
)]
|
|
|
|
#![warn(clippy::semicolon_inside_block)]
|
|
|
|
|
|
|
|
macro_rules! m {
|
|
|
|
(()) => {
|
2022-11-16 07:30:53 -06:00
|
|
|
()
|
2022-11-10 06:19:15 -06:00
|
|
|
};
|
|
|
|
(0) => {{
|
|
|
|
0
|
|
|
|
};};
|
|
|
|
(1) => {{
|
|
|
|
1;
|
|
|
|
}};
|
|
|
|
(2) => {{
|
|
|
|
2;
|
|
|
|
}};
|
|
|
|
}
|
|
|
|
|
|
|
|
fn unit_fn_block() {
|
|
|
|
()
|
|
|
|
}
|
|
|
|
|
|
|
|
#[rustfmt::skip]
|
|
|
|
fn main() {
|
|
|
|
{ unit_fn_block() }
|
|
|
|
unsafe { unit_fn_block() }
|
|
|
|
|
|
|
|
{
|
|
|
|
unit_fn_block()
|
|
|
|
}
|
|
|
|
|
|
|
|
{ unit_fn_block(); }
|
|
|
|
unsafe { unit_fn_block(); }
|
|
|
|
|
|
|
|
{ unit_fn_block(); }
|
|
|
|
unsafe { unit_fn_block(); }
|
|
|
|
|
|
|
|
{ unit_fn_block(); };
|
|
|
|
unsafe { unit_fn_block(); };
|
|
|
|
|
|
|
|
{
|
|
|
|
unit_fn_block();
|
|
|
|
unit_fn_block();
|
|
|
|
}
|
|
|
|
{
|
|
|
|
unit_fn_block();
|
|
|
|
unit_fn_block();
|
|
|
|
}
|
|
|
|
{
|
|
|
|
unit_fn_block();
|
|
|
|
unit_fn_block();
|
|
|
|
};
|
|
|
|
|
2022-11-16 07:30:53 -06:00
|
|
|
{ m!(()); }
|
2022-11-10 06:19:15 -06:00
|
|
|
{ m!(()); }
|
|
|
|
{ m!(()); };
|
|
|
|
m!(0);
|
|
|
|
m!(1);
|
|
|
|
m!(2);
|
|
|
|
|
|
|
|
for _ in [()] {
|
|
|
|
unit_fn_block();
|
|
|
|
}
|
|
|
|
for _ in [()] {
|
|
|
|
unit_fn_block()
|
|
|
|
}
|
|
|
|
|
|
|
|
let _d = || {
|
|
|
|
unit_fn_block();
|
|
|
|
};
|
|
|
|
let _d = || {
|
|
|
|
unit_fn_block()
|
|
|
|
};
|
|
|
|
|
2022-12-05 04:02:10 -06:00
|
|
|
{ unit_fn_block(); };
|
|
|
|
|
2022-11-10 06:19:15 -06:00
|
|
|
unit_fn_block()
|
|
|
|
}
|