diff options
| author | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-11-17 11:42:53 +0100 |
|---|---|---|
| committer | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-12-26 18:24:10 +0100 |
| commit | 18fa7789cdeced758cb4e4db22061c31b4dbad80 (patch) | |
| tree | f98a166720c00135f93728f7633773b3f13fed06 | |
| parent | 49f890bdb33f02b4a4a20d1fa1926c28ae0f4601 (diff) | |
| download | rust-18fa7789cdeced758cb4e4db22061c31b4dbad80.tar.gz rust-18fa7789cdeced758cb4e4db22061c31b4dbad80.zip | |
update error codes
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0730.md | 2 | ||||
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0770.md | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0730.md b/compiler/rustc_error_codes/src/error_codes/E0730.md index 016b3f38aa3..56d0e6afa18 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0730.md +++ b/compiler/rustc_error_codes/src/error_codes/E0730.md @@ -3,8 +3,6 @@ An array without a fixed length was pattern-matched. Erroneous code example: ```compile_fail,E0730 -#![feature(const_generics)] - fn is_123<const N: usize>(x: [u32; N]) -> bool { match x { [1, 2, ..] => true, // error: cannot pattern-match on an diff --git a/compiler/rustc_error_codes/src/error_codes/E0770.md b/compiler/rustc_error_codes/src/error_codes/E0770.md index 278bf9b907b..b39163a9de3 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0770.md +++ b/compiler/rustc_error_codes/src/error_codes/E0770.md @@ -10,6 +10,5 @@ fn foo<T, const N: T>() {} // error! To fix this error, use a concrete type for the const parameter: ``` -#![feature(const_generics)] fn foo<T, const N: usize>() {} ``` |
