File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ impl Foo for Bar {
423
423
424
424
E0049 : r##"
425
425
This error indicates that an attempted implementation of a trait method
426
- has the wrong number of type parameters.
426
+ has the wrong number of type or const parameters.
427
427
428
428
For example, the trait below has a method `foo` with a type parameter `T`,
429
429
but the implementation of `foo` for the type `Bar` is missing this parameter:
@@ -1032,6 +1032,7 @@ enum NightsWatch {}
1032
1032
```
1033
1033
"## ,
1034
1034
1035
+ // FIXME(const_generics:docs): example of inferring const parameter.
1035
1036
E0087 : r##"
1036
1037
#### Note: this error code is no longer emitted by the compiler.
1037
1038
@@ -1152,16 +1153,16 @@ fn main() {
1152
1153
"## ,
1153
1154
1154
1155
E0091 : r##"
1155
- You gave an unnecessary type parameter in a type alias. Erroneous code
1156
- example:
1156
+ You gave an unnecessary type or const parameter in a type alias. Erroneous
1157
+ code example:
1157
1158
1158
1159
```compile_fail,E0091
1159
1160
type Foo<T> = u32; // error: type parameter `T` is unused
1160
1161
// or:
1161
1162
type Foo<A,B> = Box<A>; // error: type parameter `B` is unused
1162
1163
```
1163
1164
1164
- Please check you didn't write too many type parameters. Example:
1165
+ Please check you didn't write too many parameters. Example:
1165
1166
1166
1167
```
1167
1168
type Foo = u32; // ok!
You can’t perform that action at this time.
0 commit comments