Skip to content

Commit

Permalink
rustc: Add long diagnostics for E0306 and E0307
Browse files Browse the repository at this point in the history
  • Loading branch information
lambda-fairy committed Apr 15, 2015
1 parent 84ef869 commit 98faf54
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/librustc/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
"##

}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 98faf54

Please sign in to comment.