Skip to content

Commit 6c88a28

Browse files
Add E0091 error explanation
Part of #24407. cc @michaelsproul
1 parent 378a370 commit 6c88a28

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,20 @@ fn main() {
959959
```
960960
"##,
961961

962+
E0091: r##"
963+
You gave an unnecessary type parameter. Erroneous code example:
964+
965+
```
966+
type Foo<T> = u32; // error: type parameter `T` is unused
967+
```
968+
969+
Please check you didn't write to many type parameter. Example:
970+
971+
```
972+
type Foo = u32; // ok!
973+
```
974+
"##,
975+
962976
E0106: r##"
963977
This error indicates that a lifetime is missing from a type. If it is an error
964978
inside a function signature, the problem may be with failing to adhere to the
@@ -1587,7 +1601,6 @@ register_diagnostics! {
15871601
E0086,
15881602
E0088,
15891603
E0090,
1590-
E0091,
15911604
E0092,
15921605
E0093,
15931606
E0094,

0 commit comments

Comments
 (0)