mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
Rollup merge of #68540 - GuillaumeGomez:err-codes-cleanup-e0229-e0261, r=Dylan-DPC
clean up error codes E0229 and E0261 r? @Dylan-DPC
This commit is contained in:
commit
5774dd053b
@ -1,5 +1,7 @@
|
|||||||
An associated type binding was done outside of the type parameter declaration
|
An associated type binding was done outside of the type parameter declaration
|
||||||
and `where` clause. Erroneous code example:
|
and `where` clause.
|
||||||
|
|
||||||
|
Erroneous code example:
|
||||||
|
|
||||||
```compile_fail,E0229
|
```compile_fail,E0229
|
||||||
pub trait Foo {
|
pub trait Foo {
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
When using a lifetime like `'a` in a type, it must be declared before being
|
An undeclared lifetime was used.
|
||||||
used.
|
|
||||||
|
|
||||||
These two examples illustrate the problem:
|
Erroneous code example:
|
||||||
|
|
||||||
```compile_fail,E0261
|
```compile_fail,E0261
|
||||||
// error, use of undeclared lifetime name `'a`
|
// error, use of undeclared lifetime name `'a`
|
||||||
|
Loading…
Reference in New Issue
Block a user