]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/author/blocks.rs
Auto merge of #97944 - nikic:freebsd-update, r=Mark-Simulacrum
[rust.git] / src / tools / clippy / tests / ui / author / blocks.rs
1 // edition:2018
2
3 #![allow(redundant_semicolons, clippy::no_effect)]
4 #![feature(stmt_expr_attributes)]
5 #![feature(async_closure)]
6
7 #[rustfmt::skip]
8 fn main() {
9     #[clippy::author]
10     {
11         let x = 42i32;
12         let _t = 1f32;
13
14         -x;
15     };
16     #[clippy::author]
17     {
18         let expr = String::new();
19         drop(expr)
20     };
21
22     #[clippy::author]
23     async move || {};
24 }