title: UnusedResults layout: article

UnusedResults occurs when a restricted expression-only built-in function
is suspended via go or defer. Such a suspension discards the results of
these side-effect free built-in functions, and therefore is ineffectual.

Example:
 func f(a []int) int {
 	defer len(a)
 	return i
 }