Source file src/internal/types/testdata/check/decls5.go

     1  // Copyright 2017 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package main
     6  
     7  // declarations of main
     8  const _, main /* ERROR "cannot declare main" */ , _ = 0, 1, 2
     9  type main /* ERROR "cannot declare main" */ struct{}
    10  var _, main /* ERROR "cannot declare main" */ int
    11  

View as plain text