File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -597,21 +597,6 @@ See [RFC 911] for more details on the design of `const fn`s.
597
597
[RFC 911]: https://github.com/rust-lang/rfcs/blob/master/text/0911-const-fn.md
598
598
"## ,
599
599
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
-
615
600
E0017 : r##"
616
601
References in statics and constants may only refer to immutable values.
617
602
Erroneous code example:
You can’t perform that action at this time.
0 commit comments