Skip to content

Commit ec64bbb

Browse files
Small error explanations cleanup
1 parent 30ddb5a commit ec64bbb

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/librustc_error_codes/error_codes/E0136.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
A binary can only have one entry point, and by default that entry point is the
2-
function `main()`. If there are multiple such functions, please rename one.
1+
More than one `main` function was found.
32

43
Erroneous code example:
54

@@ -14,3 +13,7 @@ fn main() { // error!
1413
// ...
1514
}
1615
```
16+
17+
A binary can only have one entry point, and by default that entry point is the
18+
`main()` function. If there are multiple instances of this function, please
19+
rename one of them.

src/librustc_error_codes/error_codes/E0161.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
A value was moved. However, its size was not known at compile time, and only
2-
values of a known size can be moved.
1+
A value was moved whose size was not known at compile time.
32

43
Erroneous code example:
54

0 commit comments

Comments
 (0)