golang.org/x/tools/gopls@v0.15.3/internal/test/marker/testdata/diagnostics/generated.txt (about)

     1  Test of "undeclared" diagnostic in generated code.
     2  
     3  -- go.mod --
     4  module example.com
     5  go 1.12
     6  
     7  -- generated.go --
     8  package generated
     9  
    10  // Code generated by generator.go. DO NOT EDIT.
    11  
    12  func _() {
    13  	var y int //@diag("y", re"y.*declared (and|but) not used")
    14  }
    15  
    16  -- generator.go --
    17  package generated
    18  
    19  func _() {
    20  	var x int //@diag("x", re"x.*declared (and|but) not used")
    21  }