Skip to content
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

Misleading error message with empty trait #23689

Closed
frewsxcv opened this issue Mar 25, 2015 · 1 comment
Closed

Misleading error message with empty trait #23689

frewsxcv opened this issue Mar 25, 2015 · 1 comment

Comments

@frewsxcv
Copy link
Member

/tmp $ cat program.rs

trait MyTrait {}

fn main() {}

/tmp $ rustc program.rs

program.rs:1:1: 1:17 error: parameter `Self` is never used
program.rs:1 trait MyTrait {}
             ^~~~~~~~~~~~~~~~
program.rs:1:17: 1:17 help: consider removing `Self` or using a marker such as `core::marker::PhantomFn`
error: aborting due to previous error

My program does not make use of any Self parameter

@rprichard
Copy link
Contributor

Looks like a duplicate of #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