test: single-variant enum can't be dereferenced

Closes #9814