|
1 | 1 | error: unexpected token `||` after pattern
|
2 |
| - --> $DIR/multiple-pattern-typo.rs:4:15 |
| 2 | + --> $DIR/multiple-pattern-typo.rs:8:15 |
3 | 3 | |
|
4 | 4 | LL | 1 | 2 || 3 => (),
|
5 | 5 | | ^^ help: use a single `|` to specify multiple patterns: `|`
|
6 | 6 |
|
7 |
| -error: aborting due to previous error |
| 7 | +error: unexpected token `||` after pattern |
| 8 | + --> $DIR/multiple-pattern-typo.rs:13:16 |
| 9 | + | |
| 10 | +LL | (1 | 2 || 3) => (), |
| 11 | + | ^^ help: use a single `|` to specify multiple patterns: `|` |
| 12 | + |
| 13 | +error: unexpected token `||` after pattern |
| 14 | + --> $DIR/multiple-pattern-typo.rs:18:16 |
| 15 | + | |
| 16 | +LL | (1 | 2 || 3,) => (), |
| 17 | + | ^^ help: use a single `|` to specify multiple patterns: `|` |
| 18 | + |
| 19 | +error: unexpected token `||` after pattern |
| 20 | + --> $DIR/multiple-pattern-typo.rs:25:18 |
| 21 | + | |
| 22 | +LL | TS(1 | 2 || 3) => (), |
| 23 | + | ^^ help: use a single `|` to specify multiple patterns: `|` |
| 24 | + |
| 25 | +error: unexpected token `||` after pattern |
| 26 | + --> $DIR/multiple-pattern-typo.rs:32:23 |
| 27 | + | |
| 28 | +LL | NS { f: 1 | 2 || 3 } => (), |
| 29 | + | ^^ help: use a single `|` to specify multiple patterns: `|` |
| 30 | + |
| 31 | +error: unexpected token `||` after pattern |
| 32 | + --> $DIR/multiple-pattern-typo.rs:37:16 |
| 33 | + | |
| 34 | +LL | [1 | 2 || 3] => (), |
| 35 | + | ^^ help: use a single `|` to specify multiple patterns: `|` |
| 36 | + |
| 37 | +warning: the feature `or_patterns` is incomplete and may cause the compiler to crash |
| 38 | + --> $DIR/multiple-pattern-typo.rs:1:12 |
| 39 | + | |
| 40 | +LL | #![feature(or_patterns)] |
| 41 | + | ^^^^^^^^^^^ |
| 42 | + | |
| 43 | + = note: `#[warn(incomplete_features)]` on by default |
| 44 | + |
| 45 | +error: aborting due to 6 previous errors |
8 | 46 |
|
0 commit comments