Update E0079 to new format

This commit is contained in:
Yossi Konstantinovsky 2016-08-04 16:19:52 +03:00
parent 271d048523
commit 7fc0b2f3e2
2 changed files with 2 additions and 0 deletions

View File

@ -1057,6 +1057,7 @@ fn convert_struct_def<'a, 'tcx>(ccx: &CrateCtxt<'a, 'tcx>,
let print_err = |cv: ConstVal| {
struct_span_err!(ccx.tcx.sess, e.span, E0079, "mismatched types")
.note_expected_found(&"type", &ty_hint, &format!("{}", cv.description()))
.span_label(e.span, &format!("expected '{}' type", ty_hint))
.emit();
};

View File

@ -10,6 +10,7 @@
enum Foo {
Q = "32" //~ ERROR E0079
//~^ expected 'isize' type
}
fn main() {