Unlike regular coordinates, relative and local coordinates don't require a space after the tilde/caret/number.
Expected behavior
Syntax error; ~ 10 ~ should be used