rust/tests/ui/closure-expected-type/issue-24421.rs
2024-02-16 20:02:50 +00:00

11 lines
191 B
Rust

//@ check-pass
fn test<F: Fn(&u64, &u64)>(f: F) {}
fn main() {
test(|x, y | {});
test(|x:&u64, y:&u64| {});
test(|x:&u64, y | {});
test(|x, y:&u64| {});
}