Skip to content

Commit f9ea77b

Browse files
author
Nick Hamann
committed
Add long diagnostic for E0137
1 parent c01d5bf commit f9ea77b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/librustc/diagnostics.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@ fn main() {
271271
See also http://doc.rust-lang.org/book/unsafe.html
272272
"##,
273273

274+
E0137: r##"
275+
This error indicates that the compiler found multiple functions with the
276+
#[main] attribute. This is an error because there must be a unique entry point
277+
into a Rust program.
278+
"##,
279+
274280
E0152: r##"
275281
Lang items are already implemented in the standard library. Unless you are
276282
writing a free-standing application (e.g. a kernel), you do not need to provide
@@ -664,7 +670,6 @@ register_diagnostics! {
664670
E0134,
665671
E0135,
666672
E0136,
667-
E0137,
668673
E0138,
669674
E0139,
670675
E0261, // use of undeclared lifetime name

0 commit comments

Comments
 (0)