Correct span in privacy error

Fix #19062.
I did not delete tests for where clauses (on functions). Both `<T: B>` and `where T: B` are tested. What I deleted is tests for structs.