diff options
Diffstat (limited to 'src/test/ui/mismatched_types/E0631.rs')
-rw-r--r-- | src/test/ui/mismatched_types/E0631.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/mismatched_types/E0631.rs b/src/test/ui/mismatched_types/E0631.rs deleted file mode 100644 index 83dbdb77a..000000000 --- a/src/test/ui/mismatched_types/E0631.rs +++ /dev/null @@ -1,11 +0,0 @@ -#![feature(unboxed_closures)] - -fn foo<F: Fn(usize)>(_: F) {} -fn bar<F: Fn<(usize,)>>(_: F) {} -fn main() { - fn f(_: u64) {} - foo(|_: isize| {}); //~ ERROR type mismatch - bar(|_: isize| {}); //~ ERROR type mismatch - foo(f); //~ ERROR type mismatch - bar(f); //~ ERROR type mismatch -} |