diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-01-26 06:37:24 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-26 06:37:24 +0900 |
| commit | 5774dd053b103f2d169962b2af7a145e14d51211 (patch) | |
| tree | 1ab52b8b614a2864d4fac1a30c8e89f48a3e640b | |
| parent | 7beac65eb64e494044fe0342bcde9e03adb0bfca (diff) | |
| parent | 7fb8f7d85dcfc135926da5b11042e21b060e98a3 (diff) | |
| download | rust-5774dd053b103f2d169962b2af7a145e14d51211.tar.gz rust-5774dd053b103f2d169962b2af7a145e14d51211.zip | |
Rollup merge of #68540 - GuillaumeGomez:err-codes-cleanup-e0229-e0261, r=Dylan-DPC
clean up error codes E0229 and E0261 r? @Dylan-DPC
| -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` |
