Skip to content

Commit cfb6816

Browse files
committed
Remove now unused error code
1 parent 8a5eb68 commit cfb6816

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/librustc_mir/diagnostics.rs

-15
Original file line numberDiff line numberDiff line change
@@ -597,21 +597,6 @@ See [RFC 911] for more details on the design of `const fn`s.
597597
[RFC 911]: https://github.com/rust-lang/rfcs/blob/master/text/0911-const-fn.md
598598
"##,
599599

600-
E0016: r##"
601-
Blocks in constants may only contain items (such as constant, function
602-
definition, etc...) and a tail expression. Erroneous code example:
603-
604-
```compile_fail,E0016
605-
const FOO: i32 = { let x = 0; x }; // 'x' isn't an item!
606-
```
607-
608-
To avoid it, you have to replace the non-item object:
609-
610-
```
611-
const FOO: i32 = { const X : i32 = 0; X };
612-
```
613-
"##,
614-
615600
E0017: r##"
616601
References in statics and constants may only refer to immutable values.
617602
Erroneous code example:

0 commit comments

Comments
 (0)