]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-66667-function-cmp-cycle.stderr
point at private fields in struct literal
[rust.git] / src / test / ui / issues / issue-66667-function-cmp-cycle.stderr
1 error[E0369]: binary operation `==` cannot be applied to type `fn() {second}`
2   --> $DIR/issue-66667-function-cmp-cycle.rs:2:12
3    |
4 LL |     second == 1
5    |     ------ ^^ - {integer}
6    |     |
7    |     fn() {second}
8
9 error[E0308]: mismatched types
10   --> $DIR/issue-66667-function-cmp-cycle.rs:2:15
11    |
12 LL |     second == 1
13    |               ^ expected fn item, found integer
14    |
15    = note: expected fn item `fn() {second}`
16                  found type `{integer}`
17
18 error[E0369]: binary operation `==` cannot be applied to type `fn() {first}`
19   --> $DIR/issue-66667-function-cmp-cycle.rs:7:11
20    |
21 LL |     first == 1
22    |     ----- ^^ - {integer}
23    |     |
24    |     fn() {first}
25
26 error[E0308]: mismatched types
27   --> $DIR/issue-66667-function-cmp-cycle.rs:7:14
28    |
29 LL |     first == 1
30    |              ^ expected fn item, found integer
31    |
32    = note: expected fn item `fn() {first}`
33                  found type `{integer}`
34
35 error[E0369]: binary operation `==` cannot be applied to type `fn() {bar}`
36   --> $DIR/issue-66667-function-cmp-cycle.rs:12:9
37    |
38 LL |     bar == 1
39    |     --- ^^ - {integer}
40    |     |
41    |     fn() {bar}
42
43 error[E0308]: mismatched types
44   --> $DIR/issue-66667-function-cmp-cycle.rs:12:12
45    |
46 LL |     bar == 1
47    |            ^ expected fn item, found integer
48    |
49    = note: expected fn item `fn() {bar}`
50                  found type `{integer}`
51
52 error: aborting due to 6 previous errors
53
54 Some errors have detailed explanations: E0308, E0369.
55 For more information about an error, try `rustc --explain E0308`.