diff options
| author | Chris Wong <lambda.fairy@gmail.com> | 2015-04-15 21:15:09 +1200 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-04-16 22:23:36 -0400 |
| commit | 0e4a77bbfeb56e715ffdc5419247c46f22ff1ffa (patch) | |
| tree | cd2f5594d4ac1c9cc31c63e02dc3f5ff86c317de | |
| parent | 77e8ddfaf342a94a7d3c3167c31199bf26b04f1f (diff) | |
| download | rust-0e4a77bbfeb56e715ffdc5419247c46f22ff1ffa.tar.gz rust-0e4a77bbfeb56e715ffdc5419247c46f22ff1ffa.zip | |
rustc: Add long diagnostics for E0306 and E0307
| -rw-r--r-- | src/librustc/diagnostics.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index 222ebb09f91..e1eb8d74186 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -293,6 +293,16 @@ match Some(5) { } See also https://github.com/rust-lang/rust/issues/14587 +"##, + +E0306: r##" +In an array literal `[x; N]`, `N` is the number of elements in the array. This +number cannot be negative. +"##, + +E0307: r##" +The length of an array is part of its type. For this reason, this length must be +a compile-time constant. "## } @@ -353,8 +363,6 @@ register_diagnostics! { E0300, // unexpanded macro E0304, // expected signed integer constant E0305, // expected constant - E0306, // expected positive integer for repeat count - E0307, // expected constant integer for repeat count E0308, E0309, // thing may not live long enough E0310, // thing may not live long enough |
