Skip to content

Commit aa13d47

Browse files
add error code
Co-authored-by: Eric Huss <[email protected]>
1 parent 9340d52 commit aa13d47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/const_eval.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const A_CONST: &'static u32 = allowed();
8383

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

86-
```rust,edition2021,compile_fail
86+
```rust,edition2021,compile_fail,E0080
8787
const fn not_allowed() -> &'static u32 {
8888
static mut VALUE: u32 = 0;
8989
&VALUE

0 commit comments

Comments
 (0)