summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-26484.rs
blob: 3b40b3dd8f075480a4fb09e392540cceafd439f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-pass
// compile-flags:-g

fn helper<F: FnOnce(usize) -> bool>(_f: F) {
    print!("");
}

fn main() {
    let cond = 0;
    helper(|v| v == cond)
}