Skip to content

Commit

Permalink
Auto merge of #28009 - GuillaumeGomez:patch-1, r=Manishearth
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed Aug 31, 2015
2 parents 6d6bf81 + b874660 commit f9f82f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/librustc_typeck/check/mod.rs
Expand Up @@ -729,6 +729,9 @@ pub fn check_item_type<'a,'tcx>(ccx: &CrateCtxt<'a,'tcx>, it: &'tcx ast::Item) {
if !pty.generics.types.is_empty() {
span_err!(ccx.tcx.sess, item.span, E0044,
"foreign items may not have type parameters");
span_help!(ccx.tcx.sess, item.span,
"consider using specialization instead of \
type parameters");
}

if let ast::ForeignItemFn(ref fn_decl, _) = item.node {
Expand Down

0 comments on commit f9f82f8

Please sign in to comment.