Debian Codegraph @

src/cmd/compile/testdata/script/embedbad.txt

raw
1 # Check that compiler does not silently crash at bad embed error.
2
3 ! go build
4 stderr 'multiple files for type string'
5 stderr 'multiple files for type \[\]byte'
6
7 -- go.mod --
8 module m
9
10 -- x.go --
11 package p
12
13 import _ "embed"
14
15 //go:embed x.go go.mod
16 var s string
17
18 //go:embed x.go go.mod
19 var b []byte