Add erroneous code example for E0131

This commit is contained in:
Guillaume Gomez 2015-08-26 14:21:03 +02:00
parent af02bccb41
commit 0c4faf2a07

View file

@ -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##"