@semorrison this commit improves the bad error message you have reported at lean-user. It is not perfect since the user has to remember the position of the structure field in the constructor.