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

Confusing error message when placing #![test] on a module #14772

Closed
bachm opened this issue Jun 9, 2014 · 0 comments
Closed

Confusing error message when placing #![test] on a module #14772

bachm opened this issue Jun 9, 2014 · 0 comments
Labels
A-diagnostics Area: Messages for errors, warnings, and lints

Comments

@bachm
Copy link

bachm commented Jun 9, 2014

//foo.rs
mod test;

//test.rs
#![test]

This will give a

error: functions used as tests must have signature fn() -> ().
foo.rs: mod test;
        ^~~~~~~~~

Which is particularly confusing when the user has already written some test functions in test.rs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants