Skip to content

Commit

Permalink
Rollup merge of rust-lang#35291 - yossi-k:master, r=jonathandturner
Browse files Browse the repository at this point in the history
Update E0079 to new format

Fixes rust-lang#35222. Part of rust-lang#35233.
r? @GuillaumeGomez
  • Loading branch information
GuillaumeGomez authored Aug 5, 2016
2 parents 1cf569d + 7fc0b2f commit d11d25b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_typeck/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};

Expand Down
1 change: 1 addition & 0 deletions src/test/compile-fail/E0079.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

enum Foo {
Q = "32" //~ ERROR E0079
//~^ expected 'isize' type
}

fn main() {
Expand Down

0 comments on commit d11d25b

Please sign in to comment.