Don’t use = when assigning with an error. Typically, this is paired with predefining an err variable, though this may be implicit in an earlier := and thus be invisible.
This often presents in a few ways ways:
// Assigning outside the current scope
var somethingOutsideTheScope T
{