Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for notSelfAssignment1 (0.11 sec)

  1. test/escape_param.go

    	box1.pair.p1 = box1.pair.p2 // ERROR "ignoring self-assignment in box1.pair.p1 = box1.pair.p2"
    	leakParam(box2.pair.p2)
    }
    
    func notSelfAssignment1(box1, box2 *BoxedPair) { // ERROR "leaking param content: box2" "box1 does not escape"
    	box1.pair.p1 = box2.pair.p1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 26 23:50:32 UTC 2021
    - 8.9K bytes
    - Viewed (0)
Back to top