Skip to content

Commit 7fb8f7d

Browse files
clean up error codeS E0229 and E0261
1 parent 768f6f9 commit 7fb8f7d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/librustc_error_codes/error_codes/E0229.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
An associated type binding was done outside of the type parameter declaration
2-
and `where` clause. Erroneous code example:
2+
and `where` clause.
3+
4+
Erroneous code example:
35

46
```compile_fail,E0229
57
pub trait Foo {

src/librustc_error_codes/error_codes/E0261.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
When using a lifetime like `'a` in a type, it must be declared before being
2-
used.
1+
An undeclared lifetime was used.
32

4-
These two examples illustrate the problem:
3+
Erroneous code example:
54

65
```compile_fail,E0261
76
// error, use of undeclared lifetime name `'a`

0 commit comments

Comments
 (0)