clean up error codeS E0229 and E0261
This commit is contained in:
parent
768f6f9340
commit
7fb8f7d85d
@ -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