clean up error codeS E0229 and E0261

This commit is contained in:
Guillaume Gomez 2020-01-25 17:41:55 +01:00
parent 768f6f9340
commit 7fb8f7d85d
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
and `where` clause. Erroneous code example:
and `where` clause.
Erroneous code example:
```compile_fail,E0229
pub trait Foo {

View File

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