diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-01-15 13:36:54 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2020-01-16 13:54:58 +0100 |
| commit | a1a0aea9e3830f4351f45f3a56c1adbca49be481 (patch) | |
| tree | 8745c8b1c1659c27250f77d303743ebbb6028f2c | |
| parent | bf84eb538fd16743240434b3e837b36c35719fee (diff) | |
| download | rust-a1a0aea9e3830f4351f45f3a56c1adbca49be481.tar.gz rust-a1a0aea9e3830f4351f45f3a56c1adbca49be481.zip | |
clean up E0195 explanation
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0195.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/librustc_error_codes/error_codes/E0195.md b/src/librustc_error_codes/error_codes/E0195.md index 3606521020a..b8c313d412e 100644 --- a/src/librustc_error_codes/error_codes/E0195.md +++ b/src/librustc_error_codes/error_codes/E0195.md @@ -1,4 +1,5 @@ -Your method's lifetime parameters do not match the trait declaration. +The lifetime parameters of the method do not match the trait declaration. + Erroneous code example: ```compile_fail,E0195 @@ -16,7 +17,7 @@ impl Trait for Foo { } ``` -The lifetime constraint `'b` for bar() implementation does not match the +The lifetime constraint `'b` for `bar()` implementation does not match the trait declaration. Ensure lifetime declarations match exactly in both trait declaration and implementation. Example: |
