diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index 549c89599ecd..01f7db83adfa 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -1368,6 +1368,26 @@ struct Foo { ``` "##, +E0128: r##" +You declared a type parameter with a default which has the same identifier as +the type parameter. Erroneous code example: + +``` +pub struct Foo; +// error: type parameters with a default cannot use forward declared +// identifiers +``` + +Please verify you used the good type or change the type parameter identifier. +Example: + +``` +pub struct Foo { + value: T +} +``` +"##, + 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 `()`. @@ -1978,7 +1998,6 @@ register_diagnostics! { E0122, E0123, E0127, - E0128, E0129, E0130, E0141,