diff options
| author | Julien Philippon <julien.philippon@epitech.eu> | 2020-03-30 19:02:01 +0200 |
|---|---|---|
| committer | Julien Philippon <julien.philippon@epitech.eu> | 2020-03-30 19:02:01 +0200 |
| commit | 32103b127f088906ea6a99a12c565c4013762fa3 (patch) | |
| tree | 5826bcc92322e6ba429963648494558023bac400 /src/librustc_error_codes/error_codes | |
| parent | 8f7eb6229cb301c2ee7900a36a13f2906518378f (diff) | |
| download | rust-32103b127f088906ea6a99a12c565c4013762fa3.tar.gz rust-32103b127f088906ea6a99a12c565c4013762fa3.zip | |
Correct long error message according to reviews
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0226.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustc_error_codes/error_codes/E0226.md b/src/librustc_error_codes/error_codes/E0226.md index e485771fc1b..4e65132ff0d 100644 --- a/src/librustc_error_codes/error_codes/E0226.md +++ b/src/librustc_error_codes/error_codes/E0226.md @@ -1,8 +1,8 @@ -Only a single explicit lifetime bound is permitted on trait objects. +More than one explicit lifetime bound was used on a trait object. Example of erroneous code: -```compile_fail +```compile_fail,E0226 trait Foo {} type T<'a, 'b> = dyn Foo + 'a + 'b; // error: Trait object `arg` has two @@ -11,6 +11,7 @@ type T<'a, 'b> = dyn Foo + 'a + 'b; // error: Trait object `arg` has two Here `T` is a trait object with two explicit lifetime bounds, 'a and 'b. +Only a single explicit lifetime bound is permitted on trait objects. To fix this error, consider removing one of the lifetime bounds: ``` |
