Add erroneous code example for E0131
This commit is contained in:
parent
af02bccb41
commit
0c4faf2a07
1 changed files with 6 additions and 0 deletions
|
@ -1721,6 +1721,12 @@ extern {
|
|||
E0131: r##"
|
||||
It is not possible to define `main` with type parameters, or even with function
|
||||
parameters. When `main` is present, it must take no arguments and return `()`.
|
||||
Erroneous code example:
|
||||
|
||||
```
|
||||
fn main<T>() { // error: main function is not allowed to have type parameters
|
||||
}
|
||||
```
|
||||
"##,
|
||||
|
||||
E0132: r##"
|
||||
|
|
Loading…
Reference in a new issue