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