| --- | |
| title: IncompatibleAssign | |
| layout: article | |
| --- | |
| <!-- Copyright 2023 The Go Authors. All rights reserved. | |
| Use of this source code is governed by a BSD-style | |
| license that can be found in the LICENSE file. --> | |
| <!-- Code generated by generrordocs.go; DO NOT EDIT. --> | |
| ``` | |
| IncompatibleAssign occurs when the type of the right-hand side expression | |
| in an assignment cannot be assigned to the type of the variable being | |
| assigned. | |
| Example: | |
| var x []int | |
| var _ int = x | |
| ``` | |