From e9c15307a97a4389d12a29ec8d0d42171710d71f Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Sat, 18 Jul 2015 13:09:01 +0530 Subject: [PATCH] Add long diagnostic for E0136 --- src/librustc/diagnostics.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs index c7a20f243b0c..27a0ba31f03d 100644 --- a/src/librustc/diagnostics.rs +++ b/src/librustc/diagnostics.rs @@ -803,6 +803,12 @@ fn main() { See also https://doc.rust-lang.org/book/unsafe.html "##, +// This shouldn't really ever trigger since the repeated value error comes first +E0136: r##" +A binary can only have one entry point, and by default that entry point is the +function `main()`. If there are multiple such functions, please rename one. +"##, + E0137: r##" This error indicates that the compiler found multiple functions with the `#[main]` attribute. This is an error because there must be a unique entry @@ -1596,7 +1602,6 @@ register_diagnostics! { // E0006 // merged with E0005 // E0134, // E0135, - E0136, E0138, E0139, E0264, // unknown external lang item