summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-22647.rs
blob: a6861410682cbeaa4223900cf51b1b6006498b93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fn main() {
    let caller<F> = |f: F|  //~ ERROR expected one of `:`, `;`, `=`, `@`, or `|`, found `<`
    where F: Fn() -> i32
    {
        let x = f();
        println!("Y {}",x);
        return x;
    };

    caller(bar_handler);
}

fn bar_handler() -> i32 {
    5
}