From 7fb8f7d85dcfc135926da5b11042e21b060e98a3 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 25 Jan 2020 17:41:55 +0100 Subject: [PATCH] clean up error codeS E0229 and E0261 --- src/librustc_error_codes/error_codes/E0229.md | 4 +++- 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`