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