diff options
| author | Oliver Schneider <git-no-reply-9879165716479413131@oli-obk.de> | 2018-05-08 14:35:45 +0200 |
|---|---|---|
| committer | Oliver Schneider <git-no-reply-9879165716479413131@oli-obk.de> | 2018-05-22 10:54:06 +0200 |
| commit | cfb68164246a28299ecfcb26bb8e463e49e10fbb (patch) | |
| tree | 21e3b393907c5380de595a1e73beaf69beb34f13 /src | |
| parent | 8a5eb689583163eef39e6b595506341ebfe19633 (diff) | |
| download | rust-cfb68164246a28299ecfcb26bb8e463e49e10fbb.tar.gz rust-cfb68164246a28299ecfcb26bb8e463e49e10fbb.zip | |
Remove now unused error code
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_mir/diagnostics.rs | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/librustc_mir/diagnostics.rs b/src/librustc_mir/diagnostics.rs index 4f36c3888b9..f195775bf86 100644 --- a/src/librustc_mir/diagnostics.rs +++ b/src/librustc_mir/diagnostics.rs @@ -597,21 +597,6 @@ See [RFC 911] for more details on the design of `const fn`s. [RFC 911]: https://github.com/rust-lang/rfcs/blob/master/text/0911-const-fn.md "##, -E0016: r##" -Blocks in constants may only contain items (such as constant, function -definition, etc...) and a tail expression. Erroneous code example: - -```compile_fail,E0016 -const FOO: i32 = { let x = 0; x }; // 'x' isn't an item! -``` - -To avoid it, you have to replace the non-item object: - -``` -const FOO: i32 = { const X : i32 = 0; X }; -``` -"##, - E0017: r##" References in statics and constants may only refer to immutable values. Erroneous code example: |
