1
Fork 0

s/class/struct/ in an error message.

This commit is contained in:
Graydon Hoare 2012-08-16 14:25:53 -07:00
parent bf0d4cc035
commit 45e7b89279

View file

@ -429,7 +429,7 @@ fn check_struct(ccx: @crate_ctxt, struct_def: @ast::struct_def,
}
// Check that there's at least one field
if struct_def.fields.len() < 1u {
ccx.tcx.sess.span_err(span, ~"a class must have at least one field");
ccx.tcx.sess.span_err(span, ~"a struct must have at least one field");
}
// Check that the class is instantiable
check_instantiable(ccx.tcx, span, id);