Fix error message on invalid field names for a struct variant

Fixes #19922.
I know it's provided, but it's still nice to have it in the same `issue-19922.rs` file as a quick proof that this works for the other cases. Sorry, I should have phrased my previous comment better :)