Puzzle when playing with lifetime

I recently made the same mistake in another context.