summaryrefslogtreecommitdiffstats
path: root/src/cmd/go/testdata/script/embed_fmt.txt
blob: 8a16afea8a0946cadc92290a66c4a354fdbb38c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# 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