An outer reference can be used only in syntax similar to the following:
X = Y
Syntax such as X = Y + 1 or X = 5 will produce this error.