E2074 Syntax Errors

Syntax

member access cannot have whitespace before the dot; write 'obj.field' or 'Enum.VARIANT' with no space or newline

When this occurs

This error is triggered when: member access cannot have whitespace before the dot; write 'obj.field' or 'enum.variant' with no space or newline

Example error message

error[E2074]: member access cannot have whitespace before the dot; write 'obj.field' or 'Enum.VARIANT' with no space or newline

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.