We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9340d52 commit aa13d47Copy full SHA for aa13d47
src/const_eval.md
@@ -83,7 +83,7 @@ const A_CONST: &'static u32 = allowed();
83
84
On the contrary, for example, `static mut` and types embedding an `UnsafeCell` is not allowed.
85
86
-```rust,edition2021,compile_fail
+```rust,edition2021,compile_fail,E0080
87
const fn not_allowed() -> &'static u32 {
88
static mut VALUE: u32 = 0;
89
&VALUE
0 commit comments