diff options
author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2016-11-14 00:39:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-14 00:39:14 +0100 |
commit | e4a9d834afacc55ff1c746f8a605908ab51b92bb (patch) | |
tree | 8a7e45023da0571509d94cf4ea4d4298597ca6ec | |
parent | 876b7610100a6609db04be010144062f582cfb8c (diff) | |
download | rust-E0002-precision.tar.gz |
Uncomment some long error explanationE0002-precision
-rw-r--r-- | src/librustc_const_eval/diagnostics.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/librustc_const_eval/diagnostics.rs b/src/librustc_const_eval/diagnostics.rs index db72057636a..83b0d9dec6d 100644 --- a/src/librustc_const_eval/diagnostics.rs +++ b/src/librustc_const_eval/diagnostics.rs @@ -40,7 +40,9 @@ Ensure the ordering of the match arm is correct and remove any superfluous arms. "##, -/*E0002: r##" +E0002: r##" +## Note: this error code is no longer emitted by the compiler. + This error indicates that an empty match expression is invalid because the type it is matching on is non-empty (there exist values of this type). In safe code it is impossible to create an instance of an empty type, so empty match @@ -68,10 +70,11 @@ fn foo(x: Option<String>) { } } ``` -"##,*/ +"##, +E0003: r##" +## Note: this error code is no longer emitted by the compiler. -/*E0003: r##" Not-a-Number (NaN) values cannot be compared for equality and hence can never match the input to a match expression. So, the following will not compile: @@ -98,7 +101,6 @@ match number { } ``` "##, -*/ E0004: r##" This error indicates that the compiler cannot guarantee a matching pattern for |