]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/ty_fn_sig.rs
Auto merge of #97191 - wesleywiser:main_thread_name, r=ChrisDenton
[rust.git] / src / tools / clippy / tests / ui / ty_fn_sig.rs
1 // Regression test
2
3 pub fn retry<F: Fn()>(f: F) {
4     for _i in 0.. {
5         f();
6     }
7 }
8
9 fn main() {
10     for y in 0..4 {
11         let func = || ();
12         func();
13     }
14 }