mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-20 04:24:41 +00:00
13 lines
212 B
Rust
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)
|
|
}
|