Skip to content

Commit 0aebb08

Browse files
committed
slice_patterns: adjust error codes
1 parent c41443a commit 0aebb08

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

src/librustc_error_codes/error_codes/E0527.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ Ensure that the pattern is consistent with the size of the matched
1717
array. Additional elements can be matched with `..`:
1818

1919
```
20-
#![feature(slice_patterns)]
21-
2220
let r = &[1, 2, 3, 4];
2321
match r {
2422
&[a, b, ..] => { // ok!

src/librustc_error_codes/error_codes/E0528.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ matched array.
44
Example of erroneous code:
55

66
```compile_fail,E0528
7-
#![feature(slice_patterns)]
8-
97
let r = &[1, 2];
108
match r {
119
&[a, b, c, rest @ ..] => { // error: pattern requires at least 3
@@ -19,8 +17,6 @@ Ensure that the matched array has at least as many elements as the pattern
1917
requires. You can match an arbitrary number of remaining elements with `..`:
2018

2119
```
22-
#![feature(slice_patterns)]
23-
2420
let r = &[1, 2, 3, 4, 5];
2521
match r {
2622
&[a, b, c, rest @ ..] => { // ok!

src/librustc_error_codes/error_codes/E0730.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ Ensure that the pattern is consistent with the size of the matched
1818
array. Additional elements can be matched with `..`:
1919

2020
```
21-
#![feature(slice_patterns)]
22-
2321
let r = &[1, 2, 3, 4];
2422
match r {
2523
&[a, b, ..] => { // ok!

0 commit comments

Comments
 (0)