|
| 1 | +error: expected `{`, found `=>` |
| 2 | + --> $DIR/eq-gt-to-gt-eq.rs:8:10 |
| 3 | + | |
| 4 | +LL | if a => b {} |
| 5 | + | ^^ expected `{` |
| 6 | + | |
| 7 | +help: you probably meant to write a "greater than or equal to" comparison |
| 8 | + | |
| 9 | +LL | if a >= b {} |
| 10 | + | ~~ |
| 11 | + |
| 12 | +error: expected `{`, found `=>` |
| 13 | + --> $DIR/eq-gt-to-gt-eq.rs:13:10 |
| 14 | + | |
| 15 | +LL | if a => 1 {} |
| 16 | + | ^^ expected `{` |
| 17 | + | |
| 18 | +help: you probably meant to write a "greater than or equal to" comparison |
| 19 | + | |
| 20 | +LL | if a >= 1 {} |
| 21 | + | ~~ |
| 22 | + |
| 23 | +error: expected `{`, found `=>` |
| 24 | + --> $DIR/eq-gt-to-gt-eq.rs:18:10 |
| 25 | + | |
| 26 | +LL | if 1 => a {} |
| 27 | + | ^^ expected `{` |
| 28 | + | |
| 29 | +help: you probably meant to write a "greater than or equal to" comparison |
| 30 | + | |
| 31 | +LL | if 1 >= a {} |
| 32 | + | ~~ |
| 33 | + |
| 34 | +error: expected `{`, found `=>` |
| 35 | + --> $DIR/eq-gt-to-gt-eq.rs:24:10 |
| 36 | + | |
| 37 | +LL | if a => b && a != b {} |
| 38 | + | ^^ expected `{` |
| 39 | + | |
| 40 | +help: you probably meant to write a "greater than or equal to" comparison |
| 41 | + | |
| 42 | +LL | if a >= b && a != b {} |
| 43 | + | ~~ |
| 44 | + |
| 45 | +error: expected `{`, found `=>` |
| 46 | + --> $DIR/eq-gt-to-gt-eq.rs:30:20 |
| 47 | + | |
| 48 | +LL | if a != b && a => b {} |
| 49 | + | ^^ expected `{` |
| 50 | + | |
| 51 | +help: you probably meant to write a "greater than or equal to" comparison |
| 52 | + | |
| 53 | +LL | if a != b && a >= b {} |
| 54 | + | ~~ |
| 55 | + |
| 56 | +error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `=>` |
| 57 | + --> $DIR/eq-gt-to-gt-eq.rs:36:15 |
| 58 | + | |
| 59 | +LL | let _ = a => b; |
| 60 | + | ^^ expected one of 8 possible tokens |
| 61 | + |
| 62 | +error: expected one of `!`, `.`, `::`, `?`, `{`, or an operator, found `=>` |
| 63 | + --> $DIR/eq-gt-to-gt-eq.rs:42:13 |
| 64 | + | |
| 65 | +LL | match a => b { |
| 66 | + | ----- ^^ expected one of `!`, `.`, `::`, `?`, `{`, or an operator |
| 67 | + | | |
| 68 | + | while parsing this `match` expression |
| 69 | + |
| 70 | +error: aborting due to 7 previous errors |
| 71 | + |
0 commit comments