# go fmt ignores file not found
go fmt xnofmt.go
cmp xnofmt.go xfmt.ref
! go build xnofmt.go
stderr 'xnofmt.go:5:12: pattern missing.txt: no matching files found'

-- xnofmt.go --
package p

import "embed"

//go:embed missing.txt
var X  embed.FS
-- xfmt.ref --
package p

import "embed"

//go:embed missing.txt
var X embed.FS
-- go.mod --
module m