2023-04-20 14:37:15 +00:00
|
|
|
//@edition:2018
|
2021-10-29 01:39:41 +00:00
|
|
|
|
2020-03-03 23:54:27 +00:00
|
|
|
#![allow(redundant_semicolons, clippy::no_effect)]
|
2021-10-29 01:39:41 +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-23 21:02:09 +00:00
|
|
|
let x = 42i32;
|
2021-10-29 01:39:41 +00:00
|
|
|
let _t = 1f32;
|
|
|
|
|
2021-07-23 21:02:09 +00:00
|
|
|
-x;
|
|
|
|
};
|
|
|
|
#[clippy::author]
|
|
|
|
{
|
|
|
|
let expr = String::new();
|
|
|
|
drop(expr)
|
|
|
|
};
|
2021-10-29 01:39:41 +00:00
|
|
|
|
|
|
|
#[clippy::author]
|
|
|
|
async move || {};
|
2019-05-19 14:52:44 +00:00
|
|
|
}
|