未验证 提交 31a1858a 编写于 作者: D Dylan DPC 提交者: GitHub

Rollup merge of #73124 - ayushmishra2005:correction_in_explanation_of_E0207, r=petrochenkov

Removed lifetime parameters from Explanation of E0207

Removed lifetime parameters from Explanation of E0207
Fixes #62144
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>`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册