diff options
| author | Boxy <supbscripter@gmail.com> | 2024-07-14 13:38:51 +0100 |
|---|---|---|
| committer | Boxy <rust@boxyuwu.dev> | 2024-07-17 11:01:29 +0100 |
| commit | d0c11bf6e3fea61711af107c896a763a71606340 (patch) | |
| tree | b4f60d4dc48e8e63b5404961397198b282010102 /compiler/rustc_error_codes | |
| parent | 42cc42b942088a94d95bc5169724d77429f20582 (diff) | |
Split part of `adt_const_params` into `unsized_const_params`
Diffstat (limited to 'compiler/rustc_error_codes')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0771.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0771.md b/compiler/rustc_error_codes/src/error_codes/E0771.md index 4f36590025b..74149eb79f6 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0771.md +++ b/compiler/rustc_error_codes/src/error_codes/E0771.md @@ -6,7 +6,7 @@ allowed. Erroneous code example: ```compile_fail,E0770 -#![feature(adt_const_params)] +#![feature(adt_const_params, unsized_const_params)] fn function_with_str<'a, const STRING: &'a str>() {} // error! ``` @@ -15,7 +15,7 @@ To fix this issue, the lifetime in the const generic need to be changed to `'static`: ``` -#![feature(adt_const_params)] +#![feature(adt_const_params, unsized_const_params)] fn function_with_str<const STRING: &'static str>() {} // ok! ``` |
