2
0
Fork 0
mirror of https://github.com/rust-lang/rust-clippy synced 2025-02-21 00:18:46 +00:00
rust-clippy/tests/ui/redundant_closure_call_fixable.rs

9 lines
113 B
Rust
Raw Normal View History

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