rust/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)();
}