diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-01-25 17:41:55 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-01-25 17:41:55 +0100 |
| commit | 7fb8f7d85dcfc135926da5b11042e21b060e98a3 (patch) | |
| tree | 0883d06158a38c2830019f116c455baf4b98c970 /src | |
| parent | 768f6f934028d3ac261cc6ad91219f6f90de1d72 (diff) | |
| download | rust-7fb8f7d85dcfc135926da5b11042e21b060e98a3.tar.gz rust-7fb8f7d85dcfc135926da5b11042e21b060e98a3.zip | |
clean up error codeS E0229 and E0261
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0229.md | 4 | ||||
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0261.md | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/librustc_error_codes/error_codes/E0229.md b/src/librustc_error_codes/error_codes/E0229.md index a8bd341a62b..a8fab057d43 100644 --- a/src/librustc_error_codes/error_codes/E0229.md +++ b/src/librustc_error_codes/error_codes/E0229.md @@ -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 { diff --git a/src/librustc_error_codes/error_codes/E0261.md b/src/librustc_error_codes/error_codes/E0261.md index 21cf8e70452..e3268437396 100644 --- a/src/librustc_error_codes/error_codes/E0261.md +++ b/src/librustc_error_codes/error_codes/E0261.md @@ -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` |
