mirror of
https://github.com/golang/go
synced 2024-11-26 21:31:32 -07:00
12 lines
270 B
Go
12 lines
270 B
Go
|
package main
|
||
|
|
||
|
import _ "./linkname1"
|
||
|
import "./linkname2"
|
||
|
|
||
|
func main() { // ERROR "can inline main"
|
||
|
str := "hello/world"
|
||
|
bs := []byte(str) // ERROR "\(\[\]byte\)\(str\) escapes to heap"
|
||
|
if y.ContainsSlash(bs) { // ERROR "inlining call to y.ContainsSlash"
|
||
|
}
|
||
|
}
|