[Sema] Constrain test added in r173873 with expected-error-re

Suggested in post-commit review by Richard Smith.