Skip to content

Commit d8a53df

Browse files
add error code
Co-authored-by: Eric Huss <[email protected]>
1 parent 0b8ced4 commit d8a53df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/const_eval.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ const A_CONST: &'static u32 = allowed();
8787

8888
On the contrary, for example, `static mut` and types embedding an `UnsafeCell` is not allowed.
8989

90-
```rust,edition2021,compile_fail
90+
```rust,edition2021,compile_fail,E0080
9191
const fn not_allowed() -> &'static u32 {
9292
static mut VALUE: u32 = 0;
9393
&VALUE

0 commit comments

Comments
 (0)