2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2025-03-01 05:47:25 +00:00
rust-clippy/tests/ui/redundant_closure_call_fixable.rs
2019-09-25 14:45:18 -07:00

8 lines
113 B
Rust

// run-rustfix
#![warn(clippy::redundant_closure_call)]
#![allow(unused)]
fn main() {
let a = (|| 42)();
}