about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-07-18 13:09:01 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-07-23 12:49:25 +0530
commite9c15307a97a4389d12a29ec8d0d42171710d71f (patch)
treeda564d1cd3483145707e487937bce3f0dc650056
parent29d7147dda7f7fbca1341a7cad2f67107db49863 (diff)
downloadrust-e9c15307a97a4389d12a29ec8d0d42171710d71f.tar.gz
rust-e9c15307a97a4389d12a29ec8d0d42171710d71f.zip
Add long diagnostic for E0136
-rw-r--r--src/librustc/diagnostics.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/librustc/diagnostics.rs b/src/librustc/diagnostics.rs
index c7a20f243b0..27a0ba31f03 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