diff options
Diffstat (limited to 'src/test/ui/overloaded/overloaded-calls-object-zero-args.rs')
-rw-r--r-- | src/test/ui/overloaded/overloaded-calls-object-zero-args.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/test/ui/overloaded/overloaded-calls-object-zero-args.rs b/src/test/ui/overloaded/overloaded-calls-object-zero-args.rs deleted file mode 100644 index 9a7bfaa9b..000000000 --- a/src/test/ui/overloaded/overloaded-calls-object-zero-args.rs +++ /dev/null @@ -1,13 +0,0 @@ -// run-pass -// Tests calls to closure arguments where the closure takes 0 arguments. -// This is a bit tricky due to rust-call ABI. - - -fn foo(f: &mut dyn FnMut() -> isize) -> isize { - f() -} - -fn main() { - let z = foo(&mut || 22); - assert_eq!(z, 22); -} |