diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-30 00:31:35 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2020-01-18 17:59:44 +0100 |
| commit | 0aebb0811548202b177ab411a7570e1fd3e43bc0 (patch) | |
| tree | a1b25175387fb6e0e53a5ecb95919a152c227b34 /src/librustc_error_codes/error_codes | |
| parent | c41443a2b729054c48cd798e341f75f076b390a7 (diff) | |
| download | rust-0aebb0811548202b177ab411a7570e1fd3e43bc0.tar.gz rust-0aebb0811548202b177ab411a7570e1fd3e43bc0.zip | |
slice_patterns: adjust error codes
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0527.md | 2 | ||||
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0528.md | 4 | ||||
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0730.md | 2 |
3 files changed, 0 insertions, 8 deletions
diff --git a/src/librustc_error_codes/error_codes/E0527.md b/src/librustc_error_codes/error_codes/E0527.md index 4bff39dc770..97ea3126938 100644 --- a/src/librustc_error_codes/error_codes/E0527.md +++ b/src/librustc_error_codes/error_codes/E0527.md @@ -17,8 +17,6 @@ Ensure that the pattern is consistent with the size of the matched array. Additional elements can be matched with `..`: ``` -#![feature(slice_patterns)] - let r = &[1, 2, 3, 4]; match r { &[a, b, ..] => { // ok! diff --git a/src/librustc_error_codes/error_codes/E0528.md b/src/librustc_error_codes/error_codes/E0528.md index 4b6ea246991..54c2c4d4e9d 100644 --- a/src/librustc_error_codes/error_codes/E0528.md +++ b/src/librustc_error_codes/error_codes/E0528.md @@ -4,8 +4,6 @@ matched array. Example of erroneous code: ```compile_fail,E0528 -#![feature(slice_patterns)] - let r = &[1, 2]; match r { &[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 requires. You can match an arbitrary number of remaining elements with `..`: ``` -#![feature(slice_patterns)] - let r = &[1, 2, 3, 4, 5]; match r { &[a, b, c, rest @ ..] => { // ok! diff --git a/src/librustc_error_codes/error_codes/E0730.md b/src/librustc_error_codes/error_codes/E0730.md index 803a2514865..bf1f72be325 100644 --- a/src/librustc_error_codes/error_codes/E0730.md +++ b/src/librustc_error_codes/error_codes/E0730.md @@ -18,8 +18,6 @@ Ensure that the pattern is consistent with the size of the matched array. Additional elements can be matched with `..`: ``` -#![feature(slice_patterns)] - let r = &[1, 2, 3, 4]; match r { &[a, b, ..] => { // ok! |
