Skip to content
Permalink
Browse files

Small error explanations cleanup

  • Loading branch information
GuillaumeGomez committed Jan 3, 2020
1 parent 30ddb5a commit ec64bbbe07df8e502b64e449be86c1613717c0c7
Showing with 6 additions and 4 deletions.
  1. +5 −2 src/librustc_error_codes/error_codes/E0136.md
  2. +1 −2 src/librustc_error_codes/error_codes/E0161.md
@@ -1,5 +1,4 @@
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.
More than one `main` function was found.

Erroneous code example:

@@ -14,3 +13,7 @@ fn main() { // error!
// ...
}
```

A binary can only have one entry point, and by default that entry point is the
`main()` function. If there are multiple instances of this function, please
rename one of them.
@@ -1,5 +1,4 @@
A value was moved. However, its size was not known at compile time, and only
values of a known size can be moved.
A value was moved whose size was not known at compile time.

Erroneous code example:

0 comments on commit ec64bbb

Please sign in to comment.
You can’t perform that action at this time.