title: NonSliceableOperand layout: article

NonSliceableOperand occurs when a slice operation is applied to a value
whose type is not sliceable, or is unaddressable.

Example:
 var x = [...]int{1, 2, 3}[:1]

Example:
 var x = 1
 var y = 1[:1]