From e28b78dc2bff6663c515f971050287dcf1a188ff Mon Sep 17 00:00:00 2001 From: "Carol (Nichols || Goulding)" Date: Fri, 11 Nov 2016 10:56:42 -0500 Subject: [PATCH] Add another question we need to answer --- src/ch10-03-lifetime-syntax.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ch10-03-lifetime-syntax.md b/src/ch10-03-lifetime-syntax.md index 083ecbec6..5b26cd956 100644 --- a/src/ch10-03-lifetime-syntax.md +++ b/src/ch10-03-lifetime-syntax.md @@ -240,7 +240,8 @@ note: borrowed value must be valid for the lifetime 'a as defined on the block a ``` Now we have our "does not live long enough" error. What gives? Why does Rust -need this parameter in the first place? +need this parameter in the first place? And why didn't adding this parameter +fix the error? When we have code inside of a function, Rust can analyze that specific case. There's only one thing to look at. But functions get called multiple times. So