Adjust error code

This commit is contained in:
Aaron Turon
2016-03-13 14:18:45 -07:00
parent c4f78ad7bf
commit dc45d924b6
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ fn visit_item(&mut self, item: &'v hir::Item) {
if let Some(prev_id) = prev_default_impl {
let mut err = struct_span_err!(
self.tcx.sess,
self.tcx.span_of_impl(impl_def_id).unwrap(), E0519,
self.tcx.span_of_impl(impl_def_id).unwrap(), E0521,
"redundant default implementations of trait `{}`:",
trait_ref);
err.span_note(self.tcx.span_of_impl(self.tcx.map.local_def_id(prev_id))
+2 -2
View File
@@ -3696,6 +3696,6 @@ fn main() {
// type `{}` was overridden
E0436, // functional record update requires a struct
E0513, // no type for local variable ..
E0519, // redundant default implementations of trait
E0520 // cannot specialize non-default item
E0520, // cannot specialize non-default item
E0521 // redundant default implementations of trait
}