diff options
| author | Nick Hamann <nick@wabbo.org> | 2015-04-16 00:47:31 -0500 |
|---|---|---|
| committer | Michael Sproul <micsproul@gmail.com> | 2015-04-18 08:41:20 +1000 |
| commit | 017bc44712b94d22165672fd546b7e084fc3b404 (patch) | |
| tree | 294f0c105eb9e9bb66e72818e87f9277cadbb294 | |
| parent | 22ce069c7e4e008d4835a669b85bee3d93a84172 (diff) | |
| download | rust-017bc44712b94d22165672fd546b7e084fc3b404.tar.gz rust-017bc44712b94d22165672fd546b7e084fc3b404.zip | |
Add long diagnostics for E0015
| -rw-r--r-- | src/librustc/diagnostics.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index 4f1fc4150fd..24d920077d6 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -114,6 +114,12 @@ reference when using guards or refactor the entire expression, perhaps by putting the condition inside the body of the arm. "##, +E0015: r##" +The only function calls allowed in static or constant expressions are enum +variant constructors or struct constructors (for unit or tuple structs). This +is because Rust currently does not support compile-time function execution. +"##, + E0020: r##" This error indicates that an attempt was made to divide by zero (or take the remainder of a zero divisor) in a static or constant expression. @@ -343,7 +349,6 @@ register_diagnostics! { E0012, E0013, E0014, - E0015, E0016, E0017, E0018, |
