rust/tests/ui/issues/issue-26484.rs
2023-01-11 09:32:08 +00:00

13 lines
212 B
Rust

// 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)
}