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:
Yuki Okushi 2020-01-26 06:37:24 +09:00 committed by GitHub
commit 5774dd053b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -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 {

View File

@ -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`