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