diff options
Diffstat (limited to 'tests/ui/unboxed-closures/unboxed-closures-zero-args.rs')
-rw-r--r-- | tests/ui/unboxed-closures/unboxed-closures-zero-args.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/unboxed-closures/unboxed-closures-zero-args.rs b/tests/ui/unboxed-closures/unboxed-closures-zero-args.rs new file mode 100644 index 000000000..6f41c3558 --- /dev/null +++ b/tests/ui/unboxed-closures/unboxed-closures-zero-args.rs @@ -0,0 +1,8 @@ +// run-pass +#![allow(unused_mut)] +// pretty-expanded FIXME #23616 + +fn main() { + let mut zero = || {}; + let () = zero(); +} |