-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Closed
Labels
F-effects`#![feature(effects)]``#![feature(effects)]`requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.This issue requires a nightly compiler in some way. When possible, use a F-* label instead.
Description
The following code works fine without the effects feature, but triggers a warning (soon to become a hard error) when the feature is enabled:
#![feature(effects)]
#[derive(Eq, PartialEq)]
pub struct TypeThatIsPartialEq(u8);
pub const GREEN: TypeThatIsPartialEq = TypeThatIsPartialEq(4);
pub const fn is_green(x: TypeThatIsPartialEq) -> bool {
match x { GREEN => true, _ => false }
}Metadata
Metadata
Assignees
Labels
F-effects`#![feature(effects)]``#![feature(effects)]`requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.This issue requires a nightly compiler in some way. When possible, use a F-* label instead.