Closed
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 }
}