mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-06 21:53:46 +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)
|
|
}
|