Removed lifetime parameters from Explanation of E0207 #62144
This commit is contained in:
parent
7355816093
commit
b7f25d512c
@ -1,4 +1,4 @@
|
||||
A type or lifetime parameter that is specified for `impl` is not constrained.
|
||||
A type parameter that is specified for `impl` is not constrained.
|
||||
|
||||
Erroneous code example:
|
||||
|
||||
@ -14,7 +14,7 @@ impl<T: Default> Foo {
|
||||
}
|
||||
```
|
||||
|
||||
Any type parameter or lifetime parameter of an `impl` must meet at least one of
|
||||
Any type parameter parameter of an `impl` must meet at least one of
|
||||
the following criteria:
|
||||
|
||||
- it appears in the _implementing type_ of the impl, e.g. `impl<T> Foo<T>`
|
||||
|
Loading…
Reference in New Issue
Block a user