Skip to content

Commit e9c1530

Browse files
committed
Add long diagnostic for E0136
1 parent 29d7147 commit e9c1530

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
@@ -803,6 +803,12 @@ fn main() {
803803
See also https://doc.rust-lang.org/book/unsafe.html
804804
"##,
805805

806+
// This shouldn't really ever trigger since the repeated value error comes first
807+
E0136: r##"
808+
A binary can only have one entry point, and by default that entry point is the
809+
function `main()`. If there are multiple such functions, please rename one.
810+
"##,
811+
806812
E0137: r##"
807813
This error indicates that the compiler found multiple functions with the
808814
`#[main]` attribute. This is an error because there must be a unique entry
@@ -1596,7 +1602,6 @@ register_diagnostics! {
15961602
// E0006 // merged with E0005
15971603
// E0134,
15981604
// E0135,
1599-
E0136,
16001605
E0138,
16011606
E0139,
16021607
E0264, // unknown external lang item

0 commit comments

Comments
 (0)