summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-26484.rs
blob: 2a8750d3e431fbb53145878efa9fedae346b21f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass
// compile-flags:-g
// ignore-asmjs wasm2js does not support source maps yet

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

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