Skip to content

#![feature(never_type)] triggers clippy::empty_enums #3414

@rktaxe

Description

@rktaxe

The following code:

#![feature(never_type)]
#![warn(clippy::empty_enums)]

#[derive(zerocopy::FromBytes)] pub struct Foo(());

triggers the clippy::empty_enums lint, which is part of the clippy::pedantic group. With the never type now nearing stabilization (rust-lang/rust#155499), it would be nice to have this sorted out reasonably soon.

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