mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-04 12:44:40 +00:00
Update E0079 to new format
This commit is contained in:
parent
271d048523
commit
7fc0b2f3e2
@ -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();
|
||||
};
|
||||
|
||||
|
@ -10,6 +10,7 @@
|
||||
|
||||
enum Foo {
|
||||
Q = "32" //~ ERROR E0079
|
||||
//~^ expected 'isize' type
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
Loading…
Reference in New Issue
Block a user