diff --git a/tests/ui/ty_fn_sig.rs b/tests/ui/ty_fn_sig.rs index b6f9e645d..9e2753dcb 100644 --- a/tests/ui/ty_fn_sig.rs +++ b/tests/ui/ty_fn_sig.rs @@ -6,4 +6,9 @@ pub fn retry(f: F) { } } -fn main() {} +fn main() { + for y in 0..4 { + let func = || (); + func(); + } +}