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