|
| 1 | +error: expected `{`, found `=>` |
| 2 | + --> $DIR/eq-gt-to-gt-eq.rs:8:10 |
| 3 | + | |
| 4 | +LL | if a => b {} |
| 5 | + | ^^ expected `{` |
| 6 | + | |
| 7 | +note: the `if` expression is missing a block after this condition |
| 8 | + --> $DIR/eq-gt-to-gt-eq.rs:8:8 |
| 9 | + | |
| 10 | +LL | if a => b {} |
| 11 | + | ^ |
| 12 | +help: you might have meant to write a "greater than or equal to" comparison |
| 13 | + | |
| 14 | +LL | if a >= b {} |
| 15 | + | ~~ |
| 16 | + |
| 17 | +error: expected `{`, found `=>` |
| 18 | + --> $DIR/eq-gt-to-gt-eq.rs:13:10 |
| 19 | + | |
| 20 | +LL | if a => 1 {} |
| 21 | + | ^^ expected `{` |
| 22 | + | |
| 23 | +note: the `if` expression is missing a block after this condition |
| 24 | + --> $DIR/eq-gt-to-gt-eq.rs:13:8 |
| 25 | + | |
| 26 | +LL | if a => 1 {} |
| 27 | + | ^ |
| 28 | +help: you might have meant to write a "greater than or equal to" comparison |
| 29 | + | |
| 30 | +LL | if a >= 1 {} |
| 31 | + | ~~ |
| 32 | + |
| 33 | +error: expected `{`, found `=>` |
| 34 | + --> $DIR/eq-gt-to-gt-eq.rs:18:10 |
| 35 | + | |
| 36 | +LL | if 1 => a {} |
| 37 | + | ^^ expected `{` |
| 38 | + | |
| 39 | +note: the `if` expression is missing a block after this condition |
| 40 | + --> $DIR/eq-gt-to-gt-eq.rs:18:8 |
| 41 | + | |
| 42 | +LL | if 1 => a {} |
| 43 | + | ^ |
| 44 | +help: you might have meant to write a "greater than or equal to" comparison |
| 45 | + | |
| 46 | +LL | if 1 >= a {} |
| 47 | + | ~~ |
| 48 | + |
| 49 | +error: expected `{`, found `=>` |
| 50 | + --> $DIR/eq-gt-to-gt-eq.rs:24:10 |
| 51 | + | |
| 52 | +LL | if a => b && a != b {} |
| 53 | + | ^^ expected `{` |
| 54 | + | |
| 55 | +note: the `if` expression is missing a block after this condition |
| 56 | + --> $DIR/eq-gt-to-gt-eq.rs:24:8 |
| 57 | + | |
| 58 | +LL | if a => b && a != b {} |
| 59 | + | ^ |
| 60 | +help: you might have meant to write a "greater than or equal to" comparison |
| 61 | + | |
| 62 | +LL | if a >= b && a != b {} |
| 63 | + | ~~ |
| 64 | + |
| 65 | +error: expected `{`, found `=>` |
| 66 | + --> $DIR/eq-gt-to-gt-eq.rs:30:20 |
| 67 | + | |
| 68 | +LL | if a != b && a => b {} |
| 69 | + | ^^ expected `{` |
| 70 | + | |
| 71 | +note: the `if` expression is missing a block after this condition |
| 72 | + --> $DIR/eq-gt-to-gt-eq.rs:30:8 |
| 73 | + | |
| 74 | +LL | if a != b && a => b {} |
| 75 | + | ^^^^^^^^^^^ |
| 76 | +help: you might have meant to write a "greater than or equal to" comparison |
| 77 | + | |
| 78 | +LL | if a != b && a >= b {} |
| 79 | + | ~~ |
| 80 | + |
| 81 | +error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `=>` |
| 82 | + --> $DIR/eq-gt-to-gt-eq.rs:36:15 |
| 83 | + | |
| 84 | +LL | let _ = a => b; |
| 85 | + | ^^ expected one of 8 possible tokens |
| 86 | + | |
| 87 | +help: you might have meant to write a "greater than or equal to" comparison |
| 88 | + | |
| 89 | +LL | let _ = a >= b; |
| 90 | + | ~~ |
| 91 | + |
| 92 | +error: expected one of `!`, `.`, `::`, `?`, `{`, or an operator, found `=>` |
| 93 | + --> $DIR/eq-gt-to-gt-eq.rs:42:13 |
| 94 | + | |
| 95 | +LL | match a => b { |
| 96 | + | ----- ^^ expected one of `!`, `.`, `::`, `?`, `{`, or an operator |
| 97 | + | | |
| 98 | + | while parsing this `match` expression |
| 99 | + | |
| 100 | +help: you might have meant to write a "greater than or equal to" comparison |
| 101 | + | |
| 102 | +LL | match a >= b { |
| 103 | + | ~~ |
| 104 | + |
| 105 | +error: aborting due to 7 previous errors |
| 106 | + |
0 commit comments