|
| 1 | +error: expected one of `=>`, `if`, or `|`, found `}` |
| 2 | + --> $DIR/match-arm-without-body.rs:8:5 |
| 3 | + | |
| 4 | +LL | Some(_) |
| 5 | + | - expected one of `=>`, `if`, or `|` |
| 6 | +LL | } |
| 7 | + | ^ unexpected token |
| 8 | + |
| 9 | +error: expected one of `=>`, `if`, or `|`, found reserved identifier `_` |
| 10 | + --> $DIR/match-arm-without-body.rs:12:9 |
| 11 | + | |
| 12 | +LL | Some(_) |
| 13 | + | - expected one of `=>`, `if`, or `|` |
| 14 | +LL | _ => {} |
| 15 | + | ^ unexpected token |
| 16 | + |
| 17 | +error: unexpected `,` in pattern |
| 18 | + --> $DIR/match-arm-without-body.rs:16:16 |
| 19 | + | |
| 20 | +LL | Some(_), |
| 21 | + | ^ |
| 22 | + | |
| 23 | +help: try adding parentheses to match on a tuple... |
| 24 | + | |
| 25 | +LL | (Some(_),) |
| 26 | + | + + |
| 27 | +help: ...or a vertical bar to match on multiple alternatives |
| 28 | + | |
| 29 | +LL | Some(_) | |
| 30 | + | |
| 31 | + |
| 32 | +error: unexpected `,` in pattern |
| 33 | + --> $DIR/match-arm-without-body.rs:22:16 |
| 34 | + | |
| 35 | +LL | Some(_), |
| 36 | + | ^ |
| 37 | + | |
| 38 | +help: try adding parentheses to match on a tuple... |
| 39 | + | |
| 40 | +LL ~ (Some(_), |
| 41 | +LL | |
| 42 | +LL | |
| 43 | +LL | |
| 44 | +LL ~ _) => {} |
| 45 | + | |
| 46 | +help: ...or a vertical bar to match on multiple alternatives |
| 47 | + | |
| 48 | +LL ~ Some(_) | |
| 49 | +LL + |
| 50 | +LL + |
| 51 | +LL + |
| 52 | +LL ~ _ => {} |
| 53 | + | |
| 54 | + |
| 55 | +error: expected one of `.`, `=>`, `?`, or an operator, found `}` |
| 56 | + --> $DIR/match-arm-without-body.rs:30:5 |
| 57 | + | |
| 58 | +LL | Some(_) if true |
| 59 | + | - expected one of `.`, `=>`, `?`, or an operator |
| 60 | +LL | } |
| 61 | + | ^ unexpected token |
| 62 | + |
| 63 | +error: expected one of `.`, `=>`, `?`, or an operator, found reserved identifier `_` |
| 64 | + --> $DIR/match-arm-without-body.rs:34:9 |
| 65 | + | |
| 66 | +LL | Some(_) if true |
| 67 | + | - expected one of `.`, `=>`, `?`, or an operator |
| 68 | +LL | _ => {} |
| 69 | + | ^ unexpected token |
| 70 | + |
| 71 | +error: expected one of `.`, `=>`, `?`, or an operator, found `,` |
| 72 | + --> $DIR/match-arm-without-body.rs:38:24 |
| 73 | + | |
| 74 | +LL | Some(_) if true, |
| 75 | + | ^ expected one of `.`, `=>`, `?`, or an operator |
| 76 | + |
| 77 | +error: expected one of `.`, `=>`, `?`, or an operator, found `,` |
| 78 | + --> $DIR/match-arm-without-body.rs:42:24 |
| 79 | + | |
| 80 | +LL | Some(_) if true, |
| 81 | + | ^ expected one of `.`, `=>`, `?`, or an operator |
| 82 | + |
| 83 | +error: expected one of `=>`, `if`, or `|`, found `}` |
| 84 | + --> $DIR/match-arm-without-body.rs:48:5 |
| 85 | + | |
| 86 | +LL | pat!() |
| 87 | + | - expected one of `=>`, `if`, or `|` |
| 88 | +LL | } |
| 89 | + | ^ unexpected token |
| 90 | + |
| 91 | +error: unexpected `,` in pattern |
| 92 | + --> $DIR/match-arm-without-body.rs:51:15 |
| 93 | + | |
| 94 | +LL | pat!(), |
| 95 | + | ^ |
| 96 | + | |
| 97 | + = note: macros cannot expand to match arms |
| 98 | + |
| 99 | +error: expected one of `.`, `=>`, `?`, or an operator, found `,` |
| 100 | + --> $DIR/match-arm-without-body.rs:55:23 |
| 101 | + | |
| 102 | +LL | pat!() if true, |
| 103 | + | ^ expected one of `.`, `=>`, `?`, or an operator |
| 104 | + |
| 105 | +error: expected one of `=>`, `if`, or `|`, found reserved identifier `_` |
| 106 | + --> $DIR/match-arm-without-body.rs:60:9 |
| 107 | + | |
| 108 | +LL | pat!() |
| 109 | + | - expected one of `=>`, `if`, or `|` |
| 110 | +LL | _ => {} |
| 111 | + | ^ unexpected token |
| 112 | + |
| 113 | +error: unexpected `,` in pattern |
| 114 | + --> $DIR/match-arm-without-body.rs:64:15 |
| 115 | + | |
| 116 | +LL | pat!(), |
| 117 | + | ^ |
| 118 | + | |
| 119 | + = note: macros cannot expand to match arms |
| 120 | + |
| 121 | +error: aborting due to 13 previous errors |
| 122 | + |
0 commit comments