summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unboxed-closures/unboxed-closures-type-mismatch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/unboxed-closures/unboxed-closures-type-mismatch.rs')
-rw-r--r--src/test/ui/unboxed-closures/unboxed-closures-type-mismatch.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/test/ui/unboxed-closures/unboxed-closures-type-mismatch.rs b/src/test/ui/unboxed-closures/unboxed-closures-type-mismatch.rs
deleted file mode 100644
index 9f76849e5..000000000
--- a/src/test/ui/unboxed-closures/unboxed-closures-type-mismatch.rs
+++ /dev/null
@@ -1,7 +0,0 @@
-use std::ops::FnMut;
-
-pub fn main() {
- let mut f = |x: isize, y: isize| -> isize { x + y };
- let z = f(1_usize, 2); //~ ERROR mismatched types
- println!("{}", z);
-}