2018-01-06 12:34:19 -05:00
|
|
|
error: unexpected token `||` after pattern
|
2019-08-18 16:52:49 +02:00
|
|
|
--> $DIR/multiple-pattern-typo.rs:8:15
|
2018-01-06 12:34:19 -05:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | 1 | 2 || 3 => (),
|
2019-09-29 06:21:20 +02:00
|
|
|
| - ^^ help: use a single `|` to separate multiple alternative patterns: `|`
|
|
|
|
| |
|
|
|
|
| while parsing this or-pattern starting here
|
2018-01-06 12:34:19 -05:00
|
|
|
|
2019-08-18 16:52:49 +02:00
|
|
|
error: unexpected token `||` after pattern
|
|
|
|
--> $DIR/multiple-pattern-typo.rs:13:16
|
|
|
|
|
|
|
|
|
LL | (1 | 2 || 3) => (),
|
2019-09-29 06:21:20 +02:00
|
|
|
| - ^^ help: use a single `|` to separate multiple alternative patterns: `|`
|
|
|
|
| |
|
|
|
|
| while parsing this or-pattern starting here
|
2019-08-18 16:52:49 +02:00
|
|
|
|
|
|
|
error: unexpected token `||` after pattern
|
|
|
|
--> $DIR/multiple-pattern-typo.rs:18:16
|
|
|
|
|
|
|
|
|
LL | (1 | 2 || 3,) => (),
|
2019-09-29 06:21:20 +02:00
|
|
|
| - ^^ help: use a single `|` to separate multiple alternative patterns: `|`
|
|
|
|
| |
|
|
|
|
| while parsing this or-pattern starting here
|
2019-08-18 16:52:49 +02:00
|
|
|
|
|
|
|
error: unexpected token `||` after pattern
|
|
|
|
--> $DIR/multiple-pattern-typo.rs:25:18
|
|
|
|
|
|
|
|
|
LL | TS(1 | 2 || 3) => (),
|
2019-09-29 06:21:20 +02:00
|
|
|
| - ^^ help: use a single `|` to separate multiple alternative patterns: `|`
|
|
|
|
| |
|
|
|
|
| while parsing this or-pattern starting here
|
2019-08-18 16:52:49 +02:00
|
|
|
|
|
|
|
error: unexpected token `||` after pattern
|
|
|
|
--> $DIR/multiple-pattern-typo.rs:32:23
|
|
|
|
|
|
|
|
|
LL | NS { f: 1 | 2 || 3 } => (),
|
2019-09-29 06:21:20 +02:00
|
|
|
| - ^^ help: use a single `|` to separate multiple alternative patterns: `|`
|
|
|
|
| |
|
|
|
|
| while parsing this or-pattern starting here
|
2019-08-18 16:52:49 +02:00
|
|
|
|
|
|
|
error: unexpected token `||` after pattern
|
|
|
|
--> $DIR/multiple-pattern-typo.rs:37:16
|
|
|
|
|
|
|
|
|
LL | [1 | 2 || 3] => (),
|
2019-09-29 06:21:20 +02:00
|
|
|
| - ^^ help: use a single `|` to separate multiple alternative patterns: `|`
|
|
|
|
| |
|
|
|
|
| while parsing this or-pattern starting here
|
2019-08-18 16:52:49 +02:00
|
|
|
|
2019-08-18 18:34:35 +02:00
|
|
|
error: unexpected token `||` after pattern
|
|
|
|
--> $DIR/multiple-pattern-typo.rs:42:9
|
|
|
|
|
|
|
|
|
LL | || 1 | 2 | 3 => (),
|
2019-08-24 23:44:28 +02:00
|
|
|
| ^^ help: use a single `|` to separate multiple alternative patterns: `|`
|
2019-08-18 18:34:35 +02:00
|
|
|
|
2019-08-18 16:52:49 +02:00
|
|
|
warning: the feature `or_patterns` is incomplete and may cause the compiler to crash
|
|
|
|
--> $DIR/multiple-pattern-typo.rs:1:12
|
|
|
|
|
|
|
|
|
LL | #![feature(or_patterns)]
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `#[warn(incomplete_features)]` on by default
|
|
|
|
|
2019-08-18 18:34:35 +02:00
|
|
|
error: aborting due to 7 previous errors
|
2018-01-06 12:34:19 -05:00
|
|
|
|