Skip to content

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

@robstarling

Description

@robstarling

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions