2023-04-20 09:37:15 -05:00
|
|
|
//@edition:2018
|
2021-10-28 20:39:41 -05:00
|
|
|
|
2020-03-03 17:54:27 -06:00
|
|
|
#![allow(redundant_semicolons, clippy::no_effect)]
|
2021-10-28 20:39:41 -05:00
|
|
|
#![feature(stmt_expr_attributes)]
|
|
|
|
#![feature(async_closure)]
|
2019-05-19 09:52:44 -05:00
|
|
|
|
2019-05-20 08:32:46 -05:00
|
|
|
#[rustfmt::skip]
|
2019-05-19 09:52:44 -05:00
|
|
|
fn main() {
|
|
|
|
#[clippy::author]
|
|
|
|
{
|
2021-07-23 16:02:09 -05:00
|
|
|
let x = 42i32;
|
2021-10-28 20:39:41 -05:00
|
|
|
let _t = 1f32;
|
|
|
|
|
2021-07-23 16:02:09 -05:00
|
|
|
-x;
|
|
|
|
};
|
|
|
|
#[clippy::author]
|
|
|
|
{
|
|
|
|
let expr = String::new();
|
|
|
|
drop(expr)
|
|
|
|
};
|
2021-10-28 20:39:41 -05:00
|
|
|
|
|
|
|
#[clippy::author]
|
|
|
|
async move || {};
|
2019-05-19 09:52:44 -05:00
|
|
|
}
|