Fix diagnostics name clash

This commit is contained in:
Manish Goregaokar 2015-07-16 17:19:08 +05:30
parent 7c202a39c1
commit 69e6dc0444
2 changed files with 2 additions and 2 deletions

View file

@ -3427,7 +3427,7 @@ fn check_expr_with_unifier<'a, 'tcx, F>(fcx: &FnCtxt<'a, 'tcx>,
let struct_id = match def {
def::DefVariant(enum_id, variant_id, true) => {
if let &Some(ref base_expr) = base_expr {
span_err!(tcx.sess, base_expr.span, E0401,
span_err!(tcx.sess, base_expr.span, E0436,
"functional record update syntax requires a struct");
fcx.write_error(base_expr.id);
}

View file

@ -2211,5 +2211,5 @@ register_diagnostics! {
// type because its default value `{}` references the type `Self`"
E0399, // trait items need to be implemented because the associated
// type `{}` was overridden
E0401 // functional record update requires a struct
E0436 // functional record update requires a struct
}