diff options
| author | oli <github35764891676564198441@oli-obk.de> | 2020-12-30 17:20:38 +0000 |
|---|---|---|
| committer | oli <github35764891676564198441@oli-obk.de> | 2021-01-01 16:59:12 +0000 |
| commit | 3ed14033f7c087492a73c70bb11c1f7bae1b06c9 (patch) | |
| tree | 5b912f43d96d3e1900f8c49477f2aaf07cfd38a8 /compiler/rustc_error_codes | |
| parent | 4158e58d79af7a538944c0acffbc0718551f221a (diff) | |
| download | rust-3ed14033f7c087492a73c70bb11c1f7bae1b06c9.tar.gz rust-3ed14033f7c087492a73c70bb11c1f7bae1b06c9.zip | |
Reinstate the error-code error over the feature gate error
Diffstat (limited to 'compiler/rustc_error_codes')
| -rw-r--r-- | compiler/rustc_error_codes/src/error_codes/E0492.md | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/rustc_error_codes/src/error_codes/E0492.md b/compiler/rustc_error_codes/src/error_codes/E0492.md index 30235b0aeb0..79e7c069a91 100644 --- a/compiler/rustc_error_codes/src/error_codes/E0492.md +++ b/compiler/rustc_error_codes/src/error_codes/E0492.md @@ -3,7 +3,6 @@ A borrow of a constant containing interior mutability was attempted. Erroneous code example: ```compile_fail,E0492 -#![feature(const_refs_to_cell)] use std::sync::atomic::AtomicUsize; const A: AtomicUsize = AtomicUsize::new(0); @@ -31,7 +30,6 @@ static B: &'static AtomicUsize = &A; // ok! You can also have this error while using a cell type: ```compile_fail,E0492 -#![feature(const_refs_to_cell)] use std::cell::Cell; const A: Cell<usize> = Cell::new(1); |
