summaryrefslogtreecommitdiffstats
path: root/src/test/ui/functions-closures/closure-expected-type/supply-nothing.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/functions-closures/closure-expected-type/supply-nothing.rs')
-rw-r--r--src/test/ui/functions-closures/closure-expected-type/supply-nothing.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/functions-closures/closure-expected-type/supply-nothing.rs b/src/test/ui/functions-closures/closure-expected-type/supply-nothing.rs
deleted file mode 100644
index 8665cfc21..000000000
--- a/src/test/ui/functions-closures/closure-expected-type/supply-nothing.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-// run-pass
-fn with_closure<F>(f: F) -> u32
- where F: FnOnce(&u32, &u32) -> u32
-{
- f(&22, &44)
-}
-
-fn main() {
- let z = with_closure(|x, y| x + y).wrapping_add(1);
- assert_eq!(z, 22 + 44 + 1);
-}