! exec cue vet foo.cue

cmp stderr expect-stderr

-- foo.cue --
import "encoding/yaml"

x: string
a: b: c: *["\(x)"] | _
d: yaml.Marshal(a.b)

-- expect-stderr --
some instances are incomplete; use the -c flag to show errors or -c=false to allow incomplete instances
