mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +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)
|
|
}
|