- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ClosureCallArgs2 (0.38 sec)
-
test/escape_closure.go
*p = 1 }(&x) } func ClosureCallArgs1() { x := 0 for { func(p *int) { // ERROR "p does not escape" "func literal does not escape" *p = 1 }(&x) } } func ClosureCallArgs2() { for { x := 0 func(p *int) { // ERROR "p does not escape" "func literal does not escape" *p = 1 }(&x) } } func ClosureCallArgs3() { x := 0 // ERROR "moved to heap: x"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 17 16:36:09 UTC 2023 - 4.6K bytes - Viewed (0)