blob: 4c5c7c32782595b9ce5267a9e507b72c8815de21 [file] [log] [blame]
Russ Cox80803842012-02-16 23:49:59 -05001// errorcheck
Russ Cox112267d2011-07-27 17:39:30 -04002
3// Copyright 2011 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7package main
8
Russ Coxa5d7c1f2011-08-16 11:14:26 -04009var x int
10
Russ Cox112267d2011-07-27 17:39:30 -040011func main() {
Ian Lance Taylor8a069362011-09-23 21:23:40 -070012 (x) := 0 // ERROR "non-name [(]x[)]|non-name on left side"
Russ Cox112267d2011-07-27 17:39:30 -040013}