diff options
Diffstat (limited to 'tests/ui/unboxed-closures/unboxed-closure-call-22789.rs')
| -rw-r--r-- | tests/ui/unboxed-closures/unboxed-closure-call-22789.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/unboxed-closures/unboxed-closure-call-22789.rs b/tests/ui/unboxed-closures/unboxed-closure-call-22789.rs new file mode 100644 index 00000000000..0bc8bed0588 --- /dev/null +++ b/tests/ui/unboxed-closures/unboxed-closure-call-22789.rs @@ -0,0 +1,10 @@ +//@ check-pass + +#![feature(unboxed_closures, fn_traits)] + +fn main() { + let k = |x: i32| { x + 1 }; + Fn::call(&k, (0,)); +} + +// https://github.com/rust-lang/rust/issues/22789 |
