rustc: Improve astconv error message

This commit is contained in:
Tim Chevalier 2013-05-27 17:01:56 -07:00
parent c35b7b5d6e
commit 231aea6d6e

View File

@ -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));
}
}
}