diff options
| author | Ralf Jung <post@ralfj.de> | 2024-08-17 14:19:34 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-09-15 09:51:32 +0200 |
| commit | 3175cc2814dfa8a5201fdb165d67cc44300a77f4 (patch) | |
| tree | 75fa73cd15e7a002db825abb3dbfeb8f6690df87 /compiler/rustc_error_codes/src | |
| parent | 4f1be92153167dfc2a54215bfd49f398c04ce647 (diff) | |
| download | rust-3175cc2814dfa8a5201fdb165d67cc44300a77f4.tar.gz rust-3175cc2814dfa8a5201fdb165d67cc44300a77f4.zip | |
stabilize const_mut_refs
Diffstat (limited to 'compiler/rustc_error_codes/src')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0764.md | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0764.md b/compiler/rustc_error_codes/src/error_codes/E0764.md index 152627cf654..4d5091cd954 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0764.md +++ b/compiler/rustc_error_codes/src/error_codes/E0764.md @@ -3,8 +3,6 @@ A mutable reference was used in a constant. Erroneous code example: ```compile_fail,E0764 -#![feature(const_mut_refs)] - fn main() { const OH_NO: &'static mut usize = &mut 1; // error! } @@ -26,8 +24,6 @@ Remember: you cannot use a function call inside a constant or static. However, you can totally use it in constant functions: ``` -#![feature(const_mut_refs)] - const fn foo(x: usize) -> usize { let mut y = 1; let z = &mut y; |
