|
| 1 | +error: `match` arm body without braces |
| 2 | + --> $DIR/match-arm-without-braces.rs:26:27 |
| 3 | + | |
| 4 | +LL | Some(Val::Foo) => 3; |
| 5 | + | -- ^- help: use a comma to end a `match` arm expression: `,` |
| 6 | + | | | |
| 7 | + | | this statement is not surrounded by a body |
| 8 | + | while parsing the `match` arm starting here |
| 9 | + |
| 10 | +error: `match` arm body without braces |
| 11 | + --> $DIR/match-arm-without-braces.rs:31:11 |
| 12 | + | |
| 13 | +LL | Some(Val::Foo) => |
| 14 | + | -- while parsing the `match` arm starting here |
| 15 | +LL | / 7; |
| 16 | +LL | | 8; |
| 17 | + | |____________^ these statements are not surrounded by a body |
| 18 | + | |
| 19 | +help: surround the statements with a body |
| 20 | + | |
| 21 | +LL | { 7; |
| 22 | +LL | 8; } |
| 23 | + | |
| 24 | + |
| 25 | +error: `match` arm body without braces |
| 26 | + --> $DIR/match-arm-without-braces.rs:37:11 |
| 27 | + | |
| 28 | +LL | Some(Val::Foo) => |
| 29 | + | -- while parsing the `match` arm starting here |
| 30 | +LL | / 11; |
| 31 | +LL | | 12; |
| 32 | + | |_____________^ these statements are not surrounded by a body |
| 33 | + | |
| 34 | +help: surround the statements with a body |
| 35 | + | |
| 36 | +LL | { 11; |
| 37 | +LL | 12; } |
| 38 | + | |
| 39 | + |
| 40 | +error: `match` arm body without braces |
| 41 | + --> $DIR/match-arm-without-braces.rs:44:11 |
| 42 | + | |
| 43 | +LL | Some(Val::Foo) => |
| 44 | + | -- while parsing the `match` arm starting here |
| 45 | +LL | / 14; |
| 46 | +LL | | 15; |
| 47 | + | |_____________^ these statements are not surrounded by a body |
| 48 | + | |
| 49 | +help: surround the statements with a body |
| 50 | + | |
| 51 | +LL | { 14; |
| 52 | +LL | 15; } |
| 53 | + | |
| 54 | + |
| 55 | +error: expected one of `,`, `.`, `?`, `}`, or an operator, found reserved identifier `_` |
| 56 | + --> $DIR/match-arm-without-braces.rs:49:9 |
| 57 | + | |
| 58 | +LL | Some(Val::Foo) => 17 |
| 59 | + | -- - expected one of `,`, `.`, `?`, `}`, or an operator |
| 60 | + | | |
| 61 | + | while parsing the `match` arm starting here |
| 62 | +LL | _ => 18, |
| 63 | + | ^ unexpected token |
| 64 | + |
| 65 | +error: `match` arm body without braces |
| 66 | + --> $DIR/match-arm-without-braces.rs:53:11 |
| 67 | + | |
| 68 | +LL | Some(Val::Foo) => |
| 69 | + | -- while parsing the `match` arm starting here |
| 70 | +LL | / 20; |
| 71 | +LL | | 21 |
| 72 | + | |____________^ these statements are not surrounded by a body |
| 73 | + | |
| 74 | +help: surround the statements with a body |
| 75 | + | |
| 76 | +LL | { 20; |
| 77 | +LL | 21 } |
| 78 | + | |
| 79 | + |
| 80 | +error: `match` arm body without braces |
| 81 | + --> $DIR/match-arm-without-braces.rs:59:11 |
| 82 | + | |
| 83 | +LL | Some(Val::Foo) => |
| 84 | + | -- while parsing the `match` arm starting here |
| 85 | +LL | / 24; |
| 86 | +LL | | 25 |
| 87 | + | |____________^ these statements are not surrounded by a body |
| 88 | + | |
| 89 | +help: surround the statements with a body |
| 90 | + | |
| 91 | +LL | { 24; |
| 92 | +LL | 25 } |
| 93 | + | |
| 94 | + |
| 95 | +error: `match` arm body without braces |
| 96 | + --> $DIR/match-arm-without-braces.rs:66:11 |
| 97 | + | |
| 98 | +LL | Some(Val::Foo) => |
| 99 | + | -- while parsing the `match` arm starting here |
| 100 | +LL | / 27; |
| 101 | +LL | | 28 |
| 102 | + | |____________^ these statements are not surrounded by a body |
| 103 | + | |
| 104 | +help: surround the statements with a body |
| 105 | + | |
| 106 | +LL | { 27; |
| 107 | +LL | 28 } |
| 108 | + | |
| 109 | + |
| 110 | +error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;` |
| 111 | + --> $DIR/match-arm-without-braces.rs:71:13 |
| 112 | + | |
| 113 | +LL | Some(Val::Foo) => |
| 114 | + | -- while parsing the `match` arm starting here |
| 115 | +LL | 30; |
| 116 | + | ^ expected one of `,`, `.`, `?`, `}`, or an operator |
| 117 | + |
| 118 | +error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;` |
| 119 | + --> $DIR/match-arm-without-braces.rs:77:13 |
| 120 | + | |
| 121 | +LL | Some(Val::Foo) => |
| 122 | + | -- while parsing the `match` arm starting here |
| 123 | +LL | 34; |
| 124 | + | ^ expected one of `,`, `.`, `?`, `}`, or an operator |
| 125 | + |
| 126 | +error: expected one of `,`, `.`, `?`, `}`, or an operator, found `;` |
| 127 | + --> $DIR/match-arm-without-braces.rs:84:13 |
| 128 | + | |
| 129 | +LL | Some(Val::Foo) => |
| 130 | + | -- while parsing the `match` arm starting here |
| 131 | +LL | 37; |
| 132 | + | ^ expected one of `,`, `.`, `?`, `}`, or an operator |
| 133 | + |
| 134 | +error: aborting due to 11 previous errors |
| 135 | + |
0 commit comments