Spot the bug in the map field update

from Maps
Go 1.27 intermediate 4 min 1 issue to find

Find why rename does not compile.

Go
type Profile struct {
    Name string
}

func rename(profiles map[int]Profile, id int) {
    profiles[id].Name = "Lin"
}
Open in playground
Report an error