Skip to content

Commit

Permalink
Rollup merge of #73124 - ayushmishra2005:correction_in_explanation_of…
Browse files Browse the repository at this point in the history
…_E0207, r=petrochenkov

Removed lifetime parameters from Explanation of E0207

Removed lifetime parameters from Explanation of E0207
Fixes #62144
  • Loading branch information
Dylan-DPC committed Jun 8, 2020
2 parents 6d9cf6e + b7f25d5 commit 31a1858
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/librustc_error_codes/error_codes/E0207.md
Original file line number Diff line number Diff line change
@@ -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:

Expand All @@ -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>`
Expand Down

0 comments on commit 31a1858

Please sign in to comment.