File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -1943,9 +1943,11 @@ E0207: r##"
1943
1943
Any type parameter or lifetime parameter of an `impl` must meet at least one of
1944
1944
the following criteria:
1945
1945
1946
- - it appears in the self type of the impl
1947
- - for a trait impl, it appears in the trait reference
1948
- - it is bound as an associated type
1946
+ - it appears in the _implementing type_ of the impl, e.g. `impl<T> Foo<T>`
1947
+ - for a trait impl, it appears in the _implemented trait_, e.g.
1948
+ `impl<T> SomeTrait<T> for Foo`
1949
+ - it is bound as an associated type, e.g. `impl<T, U> SomeTrait for T
1950
+ where T: AnotherTrait<AssocType=U>`
1949
1951
1950
1952
### Error example 1
1951
1953
@@ -1964,9 +1966,9 @@ impl<T: Default> Foo {
1964
1966
}
1965
1967
```
1966
1968
1967
- The problem is that the parameter `T` does not appear in the self type (`Foo`)
1968
- of the impl. In this case, we can fix the error by moving the type parameter
1969
- from the `impl` to the method `get`:
1969
+ The problem is that the parameter `T` does not appear in the implementing type
1970
+ (`Foo`) of the impl. In this case, we can fix the error by moving the type
1971
+ parameter from the `impl` to the method `get`:
1970
1972
1971
1973
1972
1974
```
You can’t perform that action at this time.
0 commit comments