File size: 297 Bytes
e36aeda
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Check that compiler does not silently crash at bad embed error.

! go build
stderr 'multiple files for type string'
stderr 'multiple files for type \[\]byte'

-- go.mod --
module m

-- x.go --
package p

import _ "embed"

//go:embed x.go go.mod
var s string

//go:embed x.go go.mod
var b []byte