]> git.lizzy.rs Git - rust.git/commitdiff
update error codes
authorBastian Kauschke <bastian_kauschke@hotmail.de>
Tue, 17 Nov 2020 10:42:53 +0000 (11:42 +0100)
committerBastian Kauschke <bastian_kauschke@hotmail.de>
Sat, 26 Dec 2020 17:24:10 +0000 (18:24 +0100)
compiler/rustc_error_codes/src/error_codes/E0730.md
compiler/rustc_error_codes/src/error_codes/E0770.md

index 016b3f38aa310598bba2365a47289709238af03a..56d0e6afa183dcc4eeb85fc9b0bcc4da8dd00cd7 100644 (file)
@@ -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
index 278bf9b907b240358802d40bf5c53a59f6238035..b39163a9de3fd7b63bc2fdc85cac7d72f0f93114 100644 (file)
@@ -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>() {}
 ```