diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-26484.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-26484.rs b/src/test/ui/issues/issue-26484.rs new file mode 100644 index 000000000..2a8750d3e --- /dev/null +++ b/src/test/ui/issues/issue-26484.rs @@ -0,0 +1,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) +} |