title: UnusedVar layout: article
UnusedVar occurs when a variable is declared but unused. Example: func f() { x := 1 }