diff options
Diffstat (limited to 'src/test/ui/mismatched_types/closure-arg-type-mismatch.rs')
-rw-r--r-- | src/test/ui/mismatched_types/closure-arg-type-mismatch.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/mismatched_types/closure-arg-type-mismatch.rs b/src/test/ui/mismatched_types/closure-arg-type-mismatch.rs deleted file mode 100644 index 98abb0ba9..000000000 --- a/src/test/ui/mismatched_types/closure-arg-type-mismatch.rs +++ /dev/null @@ -1,11 +0,0 @@ -fn main() { - let a = [(1u32, 2u32)]; - a.iter().map(|_: (u32, u32)| 45); //~ ERROR type mismatch - a.iter().map(|_: &(u16, u16)| 45); //~ ERROR type mismatch - a.iter().map(|_: (u16, u16)| 45); //~ ERROR type mismatch -} - -fn baz<F: Fn(*mut &u32)>(_: F) {} -fn _test<'a>(f: fn(*mut &'a u32)) { - baz(f); -} |