We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a49809 commit a6dc582Copy full SHA for a6dc582
2018-edition/src/ch10-03-lifetime-syntax.md
@@ -576,6 +576,8 @@ and the second and third rules apply to output lifetimes. If the compiler gets
576
to the end of the three rules and there are still references for which it can’t
577
figure out lifetimes, the compiler will stop with an error.
578
579
+These rules apply to `fn` definitions, as well as `impl` blocks.
580
+
581
The first rule is that each parameter that is a reference gets its own lifetime
582
parameter. In other words, a function with one parameter gets one lifetime
583
parameter: `fn foo<'a>(x: &'a i32)`; a function with two parameters gets two
0 commit comments