E2072 Syntax Errors

Syntax

'&' is not a valid operator; use 'addr(x)' to take the address of a variable

When this occurs

This error is triggered when: '&' is not a valid operator; use 'addr(x)' to take the address of a variable

Example error message

error[E2072]: '&' is not a valid operator; use 'addr(x)' to take the address of a variable

How to fix

Review the error message and check your code at the indicated location. The message describes what went wrong — fix the underlying issue it identifies.

Related errors

No related errors.