Correct span in privacy error

Fix #19062.
Just making sure, but you've verified that there are other tests which are ensuring that struct where clauses are checked for privacy?