As I understand it,
- each “let” introduces a new scope.
- therefore, no variable can have the same lifetime as any other variable other than it self.
Is this true? Or is this the wrong way to think about things? If it is true, various sentences in 10.3 of the 2nd edition of the rust book seem to be incorrect. E.g.,
“The constraint we want to tell Rust about for the references in the parameters and the return value is that they all must have the same lifetime,”