]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-46771.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-46771.stderr
1 error[E0618]: expected function, found `main::Foo`
2   --> $DIR/issue-46771.rs:13:23
3    |
4 LL |     struct Foo;
5    |     ----------- `main::Foo` defined here
6 LL |     (1 .. 2).find(|_| Foo(0) == 0); //~ ERROR expected function, found `main::Foo`
7    |                       ^^^^^^ not a function
8
9 error: aborting due to previous error
10
11 For more information about this error, try `rustc --explain E0618`.