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