Clarify a statement about the lifetime elision rules

This commit is contained in:
Carol (Nichols || Goulding)
2016-11-11 11:01:51 -05:00
parent e28b78dc2b
commit 830c5832fe
+2 -1
View File
@@ -386,7 +386,8 @@ And two related to output lifetimes:
or `&mut self`, then the lifetime of `self` is the lifetime assigned to all
output lifetime parameters.
If none of these things are true, then you must explicitly annotate lifetimes.
If none of these three rules apply, then you must explicitly annotate input and
output lifetimes.
These rules sound a little bit technical, and they are. But we've found that
they cover the vast majority of cases, allowing you to write a lot of code