mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +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
|
||||
and `where` clause. Erroneous code example:
|
||||
and `where` clause.
|
||||
|
||||
Erroneous code example:
|
||||
|
||||
```compile_fail,E0229
|
||||
pub trait Foo {
|
||||
|
@ -1,7 +1,6 @@
|
||||
When using a lifetime like `'a` in a type, it must be declared before being
|
||||
used.
|
||||
An undeclared lifetime was used.
|
||||
|
||||
These two examples illustrate the problem:
|
||||
Erroneous code example:
|
||||
|
||||
```compile_fail,E0261
|
||||
// error, use of undeclared lifetime name `'a`
|
||||
|
Loading…
Reference in New Issue
Block a user