# Go should indicate the version the module requires when a standard library # import is missing. See golang.org/issue/48966. ! go build . stderr '^main.go:3:8: package nonexistent is not in std \(.*\)$' stderr '^note: imported by a module that requires go 1.99999$' -- go.mod -- module example go 1.99999 -- main.go -- package main import _ "nonexistent" func main() {}