We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a5eb68 commit cfb6816Copy full SHA for cfb6816
src/librustc_mir/diagnostics.rs
@@ -597,21 +597,6 @@ See [RFC 911] for more details on the design of `const fn`s.
597
[RFC 911]: https://github.com/rust-lang/rfcs/blob/master/text/0911-const-fn.md
598
"##,
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
E0017: r##"
616
References in statics and constants may only refer to immutable values.
617
Erroneous code example:
0 commit comments