diff options
| author | Boxy <supbscripter@gmail.com> | 2023-05-05 21:31:00 +0100 |
|---|---|---|
| committer | Boxy <supbscripter@gmail.com> | 2023-05-05 21:31:35 +0100 |
| commit | 442617c0468018aa88bcee8a8b12da8525352708 (patch) | |
| tree | f1d0ef1c03a1fd3b502378f796d91c11382e078e /compiler/rustc_error_codes | |
| parent | 4a18324a4df6bc98bec0b54d35908d7a9cdc7c32 (diff) | |
| download | rust-442617c0468018aa88bcee8a8b12da8525352708.tar.gz rust-442617c0468018aa88bcee8a8b12da8525352708.zip | |
misc nameres changes for anon consts
Diffstat (limited to 'compiler/rustc_error_codes')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0771.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0771.md b/compiler/rustc_error_codes/src/error_codes/E0771.md index a2a1a20f230..4f36590025b 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0771.md +++ b/compiler/rustc_error_codes/src/error_codes/E0771.md @@ -1,9 +1,11 @@ +#### Note: this error code is no longer emitted by the compiler + A non-`'static` lifetime was used in a const generic. This is currently not allowed. Erroneous code example: -```compile_fail,E0771 +```compile_fail,E0770 #![feature(adt_const_params)] fn function_with_str<'a, const STRING: &'a str>() {} // error! |
