This commit is contained in:
Guillaume Gomez 2015-08-26 12:56:23 +02:00
parent e13d659c12
commit b874660c64

View file

@ -731,7 +731,7 @@ pub fn check_item_type<'a,'tcx>(ccx: &CrateCtxt<'a,'tcx>, it: &'tcx ast::Item) {
"foreign items may not have type parameters");
span_help!(ccx.tcx.sess, item.span,
"consider using specialization instead of \
type parameter");
type parameters");
}
if let ast::ForeignItemFn(ref fn_decl, _) = item.node {