Skip to content

Empty trait doesn't compile anymore #22605

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

Closed
mahkoh opened this issue Feb 20, 2015 · 2 comments
Closed

Empty trait doesn't compile anymore #22605

mahkoh opened this issue Feb 20, 2015 · 2 comments

Comments

@mahkoh
Copy link
Contributor

mahkoh commented Feb 20, 2015

<anon>:2:1: 2:12 error: parameter `Self` is never used
<anon>:2 trait X { }
         ^~~~~~~~~~~
<anon>:2:1: 2:12 help: consider removing `Self` or using a marker such as `core::marker::PhantomFn`
<anon>:2 trait X { }
         ^~~~~~~~~~~
@huonw
Copy link
Member

huonw commented Feb 20, 2015

As the error message indicates, this is by design.

@huonw huonw closed this as completed Feb 20, 2015
@huonw
Copy link
Member

huonw commented Feb 20, 2015

(The spurious suggestion to remove Self is covered by #22598.)

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

No branches or pull requests

2 participants