fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
427 B13 linesraw
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`.