]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/mismatched_types/E0631.rs
1 #![feature(unboxed_closures)]
3 fn foo
<F
: Fn(usize)>(_
: F
) {}
4 fn bar
<F
: Fn
<(usize,)>>(_
: F
) {}
7 foo(|_
: isize| {}
); //~ ERROR type mismatch
8 bar(|_
: isize| {}
); //~ ERROR type mismatch
9 foo(f
); //~ ERROR type mismatch
10 bar(f
); //~ ERROR type mismatch