Skip to content

Ability to enable unstable feature in tests #18

Closed
@Frago9876543210

Description

@Frago9876543210

tests.rs

#[rustversion::attr(nightly, feature(arbitrary_enum_discriminant))]

mod something;
error[E0658]: discriminants on non-unit variants are experimental
 --> tests/derive/enums/regular_enum.rs:9:9
  |
9 |     } = 0xde,
  |         ^^^^
  |
  = note: see issue #60553 <https://github.com/rust-lang/rust/issues/60553> for more information
  = help: add `#![feature(arbitrary_enum_discriminant)]` to the crate attributes to enable

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: could not compile `endiannezz`.

To learn more, run the command again with --verbose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions