diff options
Diffstat (limited to 'src/test/ui/threads-sendsync/sendfn-is-a-block.rs')
| -rw-r--r-- | src/test/ui/threads-sendsync/sendfn-is-a-block.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/threads-sendsync/sendfn-is-a-block.rs b/src/test/ui/threads-sendsync/sendfn-is-a-block.rs deleted file mode 100644 index 62807d8941a..00000000000 --- a/src/test/ui/threads-sendsync/sendfn-is-a-block.rs +++ /dev/null @@ -1,11 +0,0 @@ -// run-pass - - -fn test<F>(f: F) -> usize where F: FnOnce(usize) -> usize { - return f(22); -} - -pub fn main() { - let y = test(|x| 4 * x); - assert_eq!(y, 88); -} |
