We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b8ced4 commit d8a53dfCopy full SHA for d8a53df
src/const_eval.md
@@ -87,7 +87,7 @@ const A_CONST: &'static u32 = allowed();
87
88
On the contrary, for example, `static mut` and types embedding an `UnsafeCell` is not allowed.
89
90
-```rust,edition2021,compile_fail
+```rust,edition2021,compile_fail,E0080
91
const fn not_allowed() -> &'static u32 {
92
static mut VALUE: u32 = 0;
93
&VALUE
0 commit comments