diff options
| author | lcnr <rust@lcnr.de> | 2021-08-30 10:59:53 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2021-08-30 12:07:36 +0200 |
| commit | 87e781799a160129169b838e900aaef8ecb3a9dd (patch) | |
| tree | 672a91c85a1a67eebdcb67b303e9d0f55bae1b56 /compiler/rustc_error_codes/src | |
| parent | 4747cbb3bbb1dd7a9f8a5bdb2eee073f8e4c43ef (diff) | |
`feature(const_param_types)` -> `feature(adt_const_params)`
Diffstat (limited to 'compiler/rustc_error_codes/src')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0741.md | 4 | ||||
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0771.md | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0741.md b/compiler/rustc_error_codes/src/error_codes/E0741.md index 510075dc779..70d963cd41f 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0741.md +++ b/compiler/rustc_error_codes/src/error_codes/E0741.md @@ -3,7 +3,7 @@ A non-structural-match type was used as the type of a const generic parameter. Erroneous code example: ```compile_fail,E0741 -#![feature(const_param_types)] +#![feature(adt_const_params)] struct A; @@ -16,7 +16,7 @@ may be used as the types of const generic parameters. To fix the previous code example, we derive `PartialEq` and `Eq`: ``` -#![feature(const_param_types)] +#![feature(adt_const_params)] #[derive(PartialEq, Eq)] // We derive both traits here. struct A; diff --git a/compiler/rustc_error_codes/src/error_codes/E0771.md b/compiler/rustc_error_codes/src/error_codes/E0771.md index c1e133673ca..a2a1a20f230 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0771.md +++ b/compiler/rustc_error_codes/src/error_codes/E0771.md @@ -4,7 +4,7 @@ allowed. Erroneous code example: ```compile_fail,E0771 -#![feature(const_param_types)] +#![feature(adt_const_params)] fn function_with_str<'a, const STRING: &'a str>() {} // error! ``` @@ -13,7 +13,7 @@ To fix this issue, the lifetime in the const generic need to be changed to `'static`: ``` -#![feature(const_param_types)] +#![feature(adt_const_params)] fn function_with_str<const STRING: &'static str>() {} // ok! ``` |
