]> git.lizzy.rs Git - rust.git/blob - tests/ui/redundant_closure_call_fixable.rs
iterate List by value
[rust.git] / tests / ui / redundant_closure_call_fixable.rs
1 // run-rustfix
2
3 #![warn(clippy::redundant_closure_call)]
4 #![allow(unused)]
5
6 fn main() {
7     let a = (|| 42)();
8 }