fork/rust
git clone https://git.julia.blue/fork/rust
4fb7144ed15
1.43.0
1error[E0618]: expected function, found `main::Foo` 2 --> $DIR/issue-46771.rs:3:23 3 | 4LL | struct Foo; 5 | ----------- `main::Foo` defined here 6LL | (1 .. 2).find(|_| Foo(0) == 0); 7 | ^^^--- 8 | | 9 | call expression requires function 10 11error: aborting due to previous error 12 13For more information about this error, try `rustc --explain E0618`.