2023-04-25 16:23:02 +00:00
|
|
|
//@run-rustfix
|
2023-04-17 04:30:00 +00:00
|
|
|
#![allow(
|
|
|
|
unused,
|
|
|
|
clippy::unused_unit,
|
|
|
|
clippy::unnecessary_operation,
|
|
|
|
clippy::no_effect,
|
|
|
|
clippy::single_element_loop
|
|
|
|
)]
|
2023-04-20 02:46:13 +00:00
|
|
|
#![warn(clippy::semicolon_inside_block)]
|
2023-04-17 04:30:00 +00:00
|
|
|
|
|
|
|
macro_rules! m {
|
|
|
|
(()) => {
|
|
|
|
()
|
|
|
|
};
|
|
|
|
(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();
|
|
|
|
};
|
|
|
|
|
|
|
|
{ m!(()) };
|
|
|
|
{ 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()
|
|
|
|
};
|
|
|
|
|
|
|
|
{ unit_fn_block(); };
|
|
|
|
|
|
|
|
unit_fn_block()
|
2023-04-17 04:36:01 +00:00
|
|
|
}
|