Skip to content

Cannot take address of map element inspection #2201

@dlsniper

Description

@dlsniper
package main

func main() {
    ages := map[string]int{}
    _ = &ages["bob"] // compile error: cannot take address of map element
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions