You can't take the address of an arbitrary value or expression, although
you can for composite literals which is why &struct{}{} is OK.
https://golang.org/ref/spec#Address_operators
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/48280a9d-78ef-4d91-8a42-198b63b035bdo%40googlegroups.com.