1 error[E0618]: expected function, found `Foo`
2 --> $DIR/issue-46771.rs:3:23
5 | ----------- `Foo` defined here
6 LL | (1 .. 2).find(|_| Foo(0) == 0);
9 | call expression requires function
11 error: aborting due to previous error
13 For more information about this error, try `rustc --explain E0618`.