Skip to content

Commit a1a0aea

Browse files
clean up E0195 explanation
1 parent bf84eb5 commit a1a0aea

File tree

1 file changed

+3
-2
lines changed
  • src/librustc_error_codes/error_codes

1 file changed

+3
-2
lines changed

src/librustc_error_codes/error_codes/E0195.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
Your method's lifetime parameters do not match the trait declaration.
1+
The lifetime parameters of the method do not match the trait declaration.
2+
23
Erroneous code example:
34

45
```compile_fail,E0195
@@ -16,7 +17,7 @@ impl Trait for Foo {
1617
}
1718
```
1819

19-
The lifetime constraint `'b` for bar() implementation does not match the
20+
The lifetime constraint `'b` for `bar()` implementation does not match the
2021
trait declaration. Ensure lifetime declarations match exactly in both trait
2122
declaration and implementation. Example:
2223

0 commit comments

Comments
 (0)