Skip to content
Snippets Groups Projects
Commit 83a63561 authored by David Renshaw's avatar David Renshaw
Browse files

add a three-argument version in the iter_any test, for good measure

parent a071e1c6
No related branches found
No related tags found
No related merge requests found
pub fn main() {
let f = |x: &u8| { 10u8 == *x };
f(&1u8);
let g = |(), x: &u8| { 10u8 == *x };
g((), &1u8);
let f = |x: &u8| { 10u8 == *x };
f(&1u8);
let h = |(), (), x: &u8| { 10u8 == *x };
h((), (), &1u8);
[1, 2, 3u8].into_iter().any(|elt| 10 == *elt);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment