Russ Cox | 8080384 | 2012-02-16 23:49:59 -0500 | [diff] [blame] | 1 | // errorcheck |
Russ Cox | 112267d | 2011-07-27 17:39:30 -0400 | [diff] [blame] | 2 | |
| 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 | |
| 7 | package main |
| 8 | |
Russ Cox | a5d7c1f | 2011-08-16 11:14:26 -0400 | [diff] [blame] | 9 | var x int |
| 10 | |
Russ Cox | 112267d | 2011-07-27 17:39:30 -0400 | [diff] [blame] | 11 | func main() { |
Ian Lance Taylor | 8a06936 | 2011-09-23 21:23:40 -0700 | [diff] [blame] | 12 | (x) := 0 // ERROR "non-name [(]x[)]|non-name on left side" |
Russ Cox | 112267d | 2011-07-27 17:39:30 -0400 | [diff] [blame] | 13 | } |