rust/tests/ui/ty_fn_sig.rs

10 lines
105 B
Rust
Raw Normal View History

2017-11-29 14:52:57 +00:00
// Regression test
pub fn retry<F: Fn()>(f: F) {
for _i in 0.. {
f();
}
}
fn main() {}