fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.0 KiB34 linesraw
1error: expected one of `!`, `(`, `+`, `::`, `<`, `>`, or `as`, found `{`
2  --> $DIR/eq-less-to-less-eq.rs:4:15
3   |
4LL |     if a =< b {
5   |          --   ^ expected one of 7 possible tokens
6   |          |
7   |          help: did you mean: `<=`
8
9error: expected one of `!`, `(`, `+`, `::`, `<`, `>`, or `as`, found `{`
10  --> $DIR/eq-less-to-less-eq.rs:12:15
11   |
12LL |     if a = <b {
13   |               ^ expected one of 7 possible tokens
14
15error: expected one of `!`, `(`, `+`, `::`, `<`, `>`, or `as`, found `{`
16  --> $DIR/eq-less-to-less-eq.rs:20:16
17   |
18LL |     if a = < b {
19   |                ^ expected one of 7 possible tokens
20
21error[E0308]: mismatched types
22  --> $DIR/eq-less-to-less-eq.rs:28:8
23   |
24LL |     if a =< i32>::abs(-4) {
25   |        ^^^^^^^^^^^^^^^^^^ expected `bool`, found `()`
26   |
27help: you might have meant to compare for equality
28   |
29LL |     if a ==< i32>::abs(-4) {
30   |           +
31
32error: aborting due to 4 previous errors
33
34For more information about this error, try `rustc --explain E0308`.