title: UnaddressableFieldAssign layout: article

UnaddressableFieldAssign occurs when trying to assign to a struct field
in a map value.

Example:
 func f() {
 	m := make(map[string]struct{i int})
 	m["foo"].i = 42
 }