Skip to content

Forbid associated items in inherant impls #20731

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 1 commit into from
Jan 8, 2015
Merged

Conversation

nrc
Copy link
Member

@nrc nrc commented Jan 8, 2015

Closes #20359

@rust-highfive
Copy link
Contributor

r? @huonw

(rust_highfive has picked a reviewer for you, use r? to override)

@@ -607,6 +607,11 @@ fn convert(ccx: &CollectCtxt, it: &ast::Item) {
methods.push(&**method);
}
ast::TypeImplItem(ref typedef) => {
if opt_trait_ref.is_none() {
tcx.sess.span_err(typedef.span,
"associated items are not allowed in inherant impls");
Copy link
Member

Choose a reason for hiding this comment

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

"inherent"

@huonw
Copy link
Member

huonw commented Jan 8, 2015

r=me with spelling

alexcrichton added a commit to alexcrichton/rust that referenced this pull request Jan 8, 2015
@bors bors merged commit 4d98cbb into rust-lang:master Jan 8, 2015
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.

Report error on inherent associated types (for now)
4 participants