diff options
Diffstat (limited to 'tests/ui/unboxed-closures/unboxed-closures-static-call-fn-once.rs')
-rw-r--r-- | tests/ui/unboxed-closures/unboxed-closures-static-call-fn-once.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/unboxed-closures/unboxed-closures-static-call-fn-once.rs b/tests/ui/unboxed-closures/unboxed-closures-static-call-fn-once.rs new file mode 100644 index 000000000..054f284ea --- /dev/null +++ b/tests/ui/unboxed-closures/unboxed-closures-static-call-fn-once.rs @@ -0,0 +1,7 @@ +// run-pass +// pretty-expanded FIXME #23616 + +fn main() { + let onetime = |x| x; + onetime(0); +} |