]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-46771.stderr
Auto merge of #98120 - TaKO8Ki:box-diagnostic-metadata-field, r=estebank
[rust.git] / src / test / ui / issues / issue-46771.stderr
1 error[E0618]: expected function, found `Foo`
2   --> $DIR/issue-46771.rs:3:23
3    |
4 LL |     struct Foo;
5    |     ---------- `Foo` defined here
6 LL |     (1 .. 2).find(|_| Foo(0) == 0);
7    |                       ^^^---
8    |                       |
9    |                       call expression requires function
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0618`.