]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/ty_fn_sig.rs
Add 'compiler/rustc_codegen_gcc/' from commit 'afae271d5d3719eeb92c18bc004bb6d1965a5f3f'
[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 }