Skip to content

Add span_help for E0044 #28009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 31, 2015
Merged

Add span_help for E0044 #28009

merged 2 commits into from
Aug 31, 2015

Conversation

GuillaumeGomez
Copy link
Member

@@ -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 parameter");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of type parameters

@Manishearth
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Aug 31, 2015

📌 Commit b874660 has been approved by Manishearth

@bors
Copy link
Collaborator

bors commented Aug 31, 2015

⌛ Testing commit b874660 with merge f9f82f8...

@bors bors merged commit b874660 into rust-lang:master Aug 31, 2015
@GuillaumeGomez GuillaumeGomez deleted the patch-1 branch August 31, 2015 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants