mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 01:25:54 +00:00
rustc: Improve astconv error message
This commit is contained in:
parent
c35b7b5d6e
commit
231aea6d6e
@ -455,7 +455,7 @@ pub fn ast_ty_to_ty<AC:AstConv, RS:region_scope + Copy + 'static>(
|
||||
}
|
||||
_ => {
|
||||
tcx.sess.span_fatal(ast_ty.span,
|
||||
"found type name used as a variable");
|
||||
fmt!("found value name used as a type: %?", a_def));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user