]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-22647.rs
Rollup merge of #106717 - klensy:typo, r=lcnr
[rust.git] / tests / ui / parser / issues / issue-22647.rs
1 fn main() {
2     let caller<F> = |f: F|  //~ ERROR expected one of `:`, `;`, `=`, `@`, or `|`, found `<`
3     where F: Fn() -> i32
4     {
5         let x = f();
6         println!("Y {}",x);
7         return x;
8     };
9
10     caller(bar_handler);
11 }
12
13 fn bar_handler() -> i32 {
14     5
15 }