blob: 9259c5422197fe1e8a210b7ddd45c2fa716b064f [file] [view]
---
title: UnassignableOperand
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. -->
```
UnassignableOperand occurs when the left-hand side of an assignment is
not assignable.
Example:
func f() {
const c = 1
c = 2
}
```