|
| 1 | +error: a leading `|` is not allowed in a parameter pattern |
| 2 | + --> $DIR/remove-leading-vert.rs:12:14 |
| 3 | + | |
| 4 | +LL | fn fun1( | A: E) {} |
| 5 | + | ^ help: remove the `|` |
| 6 | + |
| 7 | +error: a leading `|` is not allowed in a parameter pattern |
| 8 | + --> $DIR/remove-leading-vert.rs:13:14 |
| 9 | + | |
| 10 | +LL | fn fun2( || A: E) {} |
| 11 | + | ^^ help: remove the `||` |
| 12 | + |
| 13 | +error: a leading `|` is only allowed in a top-level pattern |
| 14 | + --> $DIR/remove-leading-vert.rs:14:11 |
| 15 | + | |
| 16 | +LL | let ( | A): E; |
| 17 | + | ^ help: remove the `|` |
| 18 | + |
| 19 | +error: a leading `|` is only allowed in a top-level pattern |
| 20 | + --> $DIR/remove-leading-vert.rs:15:11 |
| 21 | + | |
| 22 | +LL | let ( || A): (E); |
| 23 | + | ^^ help: remove the `||` |
| 24 | + |
| 25 | +error: a leading `|` is only allowed in a top-level pattern |
| 26 | + --> $DIR/remove-leading-vert.rs:16:11 |
| 27 | + | |
| 28 | +LL | let ( | A,): (E,); |
| 29 | + | ^ help: remove the `|` |
| 30 | + |
| 31 | +error: a leading `|` is only allowed in a top-level pattern |
| 32 | + --> $DIR/remove-leading-vert.rs:17:11 |
| 33 | + | |
| 34 | +LL | let [ | A ]: [E; 1]; |
| 35 | + | ^ help: remove the `|` |
| 36 | + |
| 37 | +error: a leading `|` is only allowed in a top-level pattern |
| 38 | + --> $DIR/remove-leading-vert.rs:18:11 |
| 39 | + | |
| 40 | +LL | let [ || A ]: [E; 1]; |
| 41 | + | ^^ help: remove the `||` |
| 42 | + |
| 43 | +error: a leading `|` is only allowed in a top-level pattern |
| 44 | + --> $DIR/remove-leading-vert.rs:19:13 |
| 45 | + | |
| 46 | +LL | let TS( | A ): TS; |
| 47 | + | ^ help: remove the `|` |
| 48 | + |
| 49 | +error: a leading `|` is only allowed in a top-level pattern |
| 50 | + --> $DIR/remove-leading-vert.rs:20:13 |
| 51 | + | |
| 52 | +LL | let TS( || A ): TS; |
| 53 | + | ^^ help: remove the `||` |
| 54 | + |
| 55 | +error: a leading `|` is only allowed in a top-level pattern |
| 56 | + --> $DIR/remove-leading-vert.rs:21:17 |
| 57 | + | |
| 58 | +LL | let NS { f: | A }: NS; |
| 59 | + | ^ help: remove the `|` |
| 60 | + |
| 61 | +error: a leading `|` is only allowed in a top-level pattern |
| 62 | + --> $DIR/remove-leading-vert.rs:22:17 |
| 63 | + | |
| 64 | +LL | let NS { f: || A }: NS; |
| 65 | + | ^^ help: remove the `||` |
| 66 | + |
| 67 | +error: aborting due to 11 previous errors |
| 68 | + |
0 commit comments