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

"TODO" suggestion doesn't seem to illustrate the point in types/alias #1296

Closed
robstarling opened this issue Dec 1, 2019 · 2 comments
Closed

Comments

@robstarling
Copy link
Contributor

In https://doc.rust-lang.org/rust-by-example/types/alias.html , it says

// Use an attribute to silence warning.
#[allow(non_camel_case_types)]
type u64_t = u64;
// TODO ^ Try removing the attribute

but removing the attribute does not result in the expected warning about a non-CamelCase type.

What should this page say and/or what would be a better example of this?

@ErikSwan
Copy link

ErikSwan commented May 23, 2020

I believe this is a duplicate of #1328. The root cause here is that the warning is not being shown in the output.

@robstarling
Copy link
Contributor Author

Agreed. Thanks!

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