...

Text file src/cmd/go/testdata/script/mod_gofmt_invalid.txt

Documentation: cmd/go/testdata/script

     1# Test for a crash in go fmt on invalid input when using modules.
     2# Issue 26792.
     3
     4env GO111MODULE=on
     5! go fmt x.go
     6! stderr panic
     7
     8-- go.mod --
     9module x
    10
    11-- x.go --
    12// Missing package declaration.
    13var V int

View as plain text