You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
R1["Rule 1: Each input<br/>reference gets its own<br/>lifetime<br/><br/>fn f(&str, &str)<br/>→ fn f<'a,'b>(&'a str,<br/>&'b str)"]
186
186
R1 --> R2
187
-
R2["Rule 2: If exactly ONE input<br/>lifetime, assign itto ALL outputs<br/><br/>fn f(&str) → &str<br/>→ fn f<'a>(&'a str)→ &'a str"]
187
+
R2["Rule 2: If exactly ONE<br/>input lifetime, assign it<br/>to ALL outputs<br/><br/>fn f(&str) → &str<br/>→ fn f<'a>(&'a str)<br/>→ &'a str"]
188
188
R2 --> R3
189
-
R3["Rule 3: If one input is &self<br/>or &mut self,assign its lifetime<br/>to ALL outputs<br/><br/>fn f(&self, &str) → &str<br/>→ fn f<'a>(&'a self, &str)→ &'a str"]
0 commit comments