|
| 1 | +error: unexpected `,` in pattern |
| 2 | + --> $DIR/feature-gate-never_patterns.rs:34:16 |
| 3 | + | |
| 4 | +LL | Some(_), |
| 5 | + | ^ |
| 6 | + | |
| 7 | +help: try adding parentheses to match on a tuple... |
| 8 | + | |
| 9 | +LL | (Some(_),) |
| 10 | + | + + |
| 11 | +help: ...or a vertical bar to match on multiple alternatives |
| 12 | + | |
| 13 | +LL | Some(_) | |
| 14 | + | |
| 15 | + |
1 | 16 | error[E0408]: variable `_x` is not bound in all patterns
|
2 | 17 | --> $DIR/feature-gate-never_patterns.rs:8:19
|
3 | 18 | |
|
@@ -25,15 +40,78 @@ LL | !
|
25 | 40 | = help: add `#![feature(never_patterns)]` to the crate attributes to enable
|
26 | 41 |
|
27 | 42 | error[E0658]: `!` patterns are experimental
|
28 |
| - --> $DIR/feature-gate-never_patterns.rs:24:13 |
| 43 | + --> $DIR/feature-gate-never_patterns.rs:21:13 |
| 44 | + | |
| 45 | +LL | ! |
| 46 | + | ^ |
| 47 | + | |
| 48 | + = note: see issue #118155 <https://github.com/rust-lang/rust/issues/118155> for more information |
| 49 | + = help: add `#![feature(never_patterns)]` to the crate attributes to enable |
| 50 | + |
| 51 | +error[E0658]: `!` patterns are experimental |
| 52 | + --> $DIR/feature-gate-never_patterns.rs:26:13 |
29 | 53 | |
|
30 | 54 | LL | ! => {}
|
31 | 55 | | ^
|
32 | 56 | |
|
33 | 57 | = note: see issue #118155 <https://github.com/rust-lang/rust/issues/118155> for more information
|
34 | 58 | = help: add `#![feature(never_patterns)]` to the crate attributes to enable
|
35 | 59 |
|
36 |
| -error: aborting due to 4 previous errors |
| 60 | +error: `match` arm with no body |
| 61 | + --> $DIR/feature-gate-never_patterns.rs:39:9 |
| 62 | + | |
| 63 | +LL | Some(_) |
| 64 | + | ^^^^^^^- help: add a body after the pattern: `=> todo!(),` |
| 65 | + |
| 66 | +error: `match` arm with no body |
| 67 | + --> $DIR/feature-gate-never_patterns.rs:44:9 |
| 68 | + | |
| 69 | +LL | Some(_) if false, |
| 70 | + | ^^^^^^^- help: add a body after the pattern: `=> todo!(),` |
| 71 | + |
| 72 | +error: `match` arm with no body |
| 73 | + --> $DIR/feature-gate-never_patterns.rs:46:9 |
| 74 | + | |
| 75 | +LL | Some(_) if false |
| 76 | + | ^^^^^^^- help: add a body after the pattern: `=> todo!(),` |
| 77 | + |
| 78 | +error[E0658]: `!` patterns are experimental |
| 79 | + --> $DIR/feature-gate-never_patterns.rs:51:13 |
| 80 | + | |
| 81 | +LL | Err(!), |
| 82 | + | ^ |
| 83 | + | |
| 84 | + = note: see issue #118155 <https://github.com/rust-lang/rust/issues/118155> for more information |
| 85 | + = help: add `#![feature(never_patterns)]` to the crate attributes to enable |
| 86 | + |
| 87 | +error[E0658]: `!` patterns are experimental |
| 88 | + --> $DIR/feature-gate-never_patterns.rs:55:13 |
| 89 | + | |
| 90 | +LL | Err(!) if false, |
| 91 | + | ^ |
| 92 | + | |
| 93 | + = note: see issue #118155 <https://github.com/rust-lang/rust/issues/118155> for more information |
| 94 | + = help: add `#![feature(never_patterns)]` to the crate attributes to enable |
| 95 | + |
| 96 | +error: `match` arm with no body |
| 97 | + --> $DIR/feature-gate-never_patterns.rs:65:9 |
| 98 | + | |
| 99 | +LL | Some(_) |
| 100 | + | ^^^^^^^- help: add a body after the pattern: `=> todo!(),` |
| 101 | + |
| 102 | +error: `match` arm with no body |
| 103 | + --> $DIR/feature-gate-never_patterns.rs:71:9 |
| 104 | + | |
| 105 | +LL | Some(_) if false |
| 106 | + | ^^^^^^^- help: add a body after the pattern: `=> todo!(),` |
| 107 | + |
| 108 | +error: a guard on a never pattern will never be run |
| 109 | + --> $DIR/feature-gate-never_patterns.rs:55:19 |
| 110 | + | |
| 111 | +LL | Err(!) if false, |
| 112 | + | ^^^^^ help: remove this guard |
| 113 | + |
| 114 | +error: aborting due to 14 previous errors |
37 | 115 |
|
38 | 116 | Some errors have detailed explanations: E0408, E0658.
|
39 | 117 | For more information about an error, try `rustc --explain E0408`.
|
0 commit comments