n nested functions // // This analyzer reports places where a function literal references the // iteration variable of an enclosing loop, and the loop calls the function // in such a way (e.g. with go or defer) that it may outlive the loop // iteration and possibly observe the wrong value of the variable. // // Note: An iteration variable can only outlive a loop iteration in Go versions <=1.21. // In Go 1.22 and later, the loop variable lifetimes changed to create a new // iteration variable per loop iteration. (See go.dev/issue/60078.) // // In this example, all the deferred functions run after the loop has // completed, so all observe the final value of v [