about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNick Hamann <nick@wabbo.org>2015-05-07 19:00:56 -0500
committerNick Hamann <nick@wabbo.org>2015-05-09 13:56:18 -0500
commitf736468c06b7c2dfc30ab72741aa2c63385bf2f0 (patch)
tree573f5d7bc1fce3609487354362936c24b13fb08f /src
parent87f0237d01936d291fc0f6499aff32726f0f6cb1 (diff)
downloadrust-f736468c06b7c2dfc30ab72741aa2c63385bf2f0.tar.gz
rust-f736468c06b7c2dfc30ab72741aa2c63385bf2f0.zip
Add long diagnostic for E0137
Diffstat (limited to 'src')
-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 ad37cc254d1..aaf615ee404 100644
--- a/src/librustc/diagnostics.rs
+++ b/src/librustc/diagnostics.rs
@@ -271,6 +271,12 @@ fn main() {
 See also http://doc.rust-lang.org/book/unsafe.html
 "##,
 
+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 point
+into a Rust program.
+"##,
+
 E0152: r##"
 Lang items are already implemented in the standard library. Unless you are
 writing a free-standing application (e.g. a kernel), you do not need to provide
@@ -800,7 +806,6 @@ register_diagnostics! {
     E0134,
     E0135,
     E0136,
-    E0137,
     E0138,
     E0139,
     E0261, // use of undeclared lifetime name