|
| 1 | +error: unexpected `,` in pattern |
| 2 | + --> $DIR/feature-gate-never_patterns.rs:36: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,110 @@ 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:15: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 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 51 | + |
| 52 | +error[E0658]: `!` patterns are experimental |
| 53 | + --> $DIR/feature-gate-never_patterns.rs:22:13 |
| 54 | + | |
| 55 | +LL | ! |
| 56 | + | ^ |
| 57 | + | |
| 58 | + = note: see issue #118155 <https://github.com/rust-lang/rust/issues/118155> for more information |
| 59 | + = help: add `#![feature(never_patterns)]` to the crate attributes to enable |
| 60 | + |
| 61 | +error[E0658]: `!` patterns are experimental |
| 62 | + --> $DIR/feature-gate-never_patterns.rs:22:13 |
| 63 | + | |
| 64 | +LL | ! |
| 65 | + | ^ |
| 66 | + | |
| 67 | + = note: see issue #118155 <https://github.com/rust-lang/rust/issues/118155> for more information |
| 68 | + = help: add `#![feature(never_patterns)]` to the crate attributes to enable |
| 69 | + = note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no` |
| 70 | + |
| 71 | +error[E0658]: `!` patterns are experimental |
| 72 | + --> $DIR/feature-gate-never_patterns.rs:28:13 |
29 | 73 | |
|
30 | 74 | LL | ! => {}
|
31 | 75 | | ^
|
32 | 76 | |
|
33 | 77 | = note: see issue #118155 <https://github.com/rust-lang/rust/issues/118155> for more information
|
34 | 78 | = help: add `#![feature(never_patterns)]` to the crate attributes to enable
|
35 | 79 |
|
36 |
| -error: aborting due to 4 previous errors |
| 80 | +error: `match` arm with no body |
| 81 | + --> $DIR/feature-gate-never_patterns.rs:41:9 |
| 82 | + | |
| 83 | +LL | Some(_) |
| 84 | + | ^^^^^^^- help: add a body after the pattern: `=> todo!(),` |
| 85 | + |
| 86 | +error: `match` arm with no body |
| 87 | + --> $DIR/feature-gate-never_patterns.rs:46:9 |
| 88 | + | |
| 89 | +LL | Some(_) if false, |
| 90 | + | ^^^^^^^- help: add a body after the pattern: `=> todo!(),` |
| 91 | + |
| 92 | +error: `match` arm with no body |
| 93 | + --> $DIR/feature-gate-never_patterns.rs:48:9 |
| 94 | + | |
| 95 | +LL | Some(_) if false |
| 96 | + | ^^^^^^^- help: add a body after the pattern: `=> todo!(),` |
| 97 | + |
| 98 | +error[E0658]: `!` patterns are experimental |
| 99 | + --> $DIR/feature-gate-never_patterns.rs:53:13 |
| 100 | + | |
| 101 | +LL | Err(!), |
| 102 | + | ^ |
| 103 | + | |
| 104 | + = note: see issue #118155 <https://github.com/rust-lang/rust/issues/118155> for more information |
| 105 | + = help: add `#![feature(never_patterns)]` to the crate attributes to enable |
| 106 | + |
| 107 | +error: `match` arm with no body |
| 108 | + --> $DIR/feature-gate-never_patterns.rs:53:9 |
| 109 | + | |
| 110 | +LL | Err(!), |
| 111 | + | ^^^^^^- help: add a body after the pattern: `=> todo!(),` |
| 112 | + |
| 113 | +error[E0658]: `!` patterns are experimental |
| 114 | + --> $DIR/feature-gate-never_patterns.rs:58:13 |
| 115 | + | |
| 116 | +LL | Err(!) if false, |
| 117 | + | ^ |
| 118 | + | |
| 119 | + = note: see issue #118155 <https://github.com/rust-lang/rust/issues/118155> for more information |
| 120 | + = help: add `#![feature(never_patterns)]` to the crate attributes to enable |
| 121 | + |
| 122 | +error: `match` arm with no body |
| 123 | + --> $DIR/feature-gate-never_patterns.rs:58:9 |
| 124 | + | |
| 125 | +LL | Err(!) if false, |
| 126 | + | ^^^^^^- help: add a body after the pattern: `=> todo!(),` |
| 127 | + |
| 128 | +error: `match` arm with no body |
| 129 | + --> $DIR/feature-gate-never_patterns.rs:69:9 |
| 130 | + | |
| 131 | +LL | Some(_) |
| 132 | + | ^^^^^^^- help: add a body after the pattern: `=> todo!(),` |
| 133 | + |
| 134 | +error: `match` arm with no body |
| 135 | + --> $DIR/feature-gate-never_patterns.rs:75:9 |
| 136 | + | |
| 137 | +LL | Some(_) if false |
| 138 | + | ^^^^^^^- help: add a body after the pattern: `=> todo!(),` |
| 139 | + |
| 140 | +error: a guard on a never pattern will never be run |
| 141 | + --> $DIR/feature-gate-never_patterns.rs:58:19 |
| 142 | + | |
| 143 | +LL | Err(!) if false, |
| 144 | + | ^^^^^ help: remove this guard |
| 145 | + |
| 146 | +error: aborting due to 18 previous errors |
37 | 147 |
|
38 | 148 | Some errors have detailed explanations: E0408, E0658.
|
39 | 149 | For more information about an error, try `rustc --explain E0408`.
|
0 commit comments