summaryrefslogtreecommitdiffstats
path: root/src/test/ui/traits/default-method/rustc_must_implement_one_of_gated.rs
blob: ec2995872de021bea422bef62e3c96a5d4a05c1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#[rustc_must_implement_one_of(eq, neq)]
//~^ the `#[rustc_must_implement_one_of]` attribute is used to change minimal complete definition of a trait, it's currently in experimental form and should be changed before being exposed outside of the std
trait Equal {
    fn eq(&self, other: &Self) -> bool {
        !self.neq(other)
    }

    fn neq(&self, other: &Self) -> bool {
        !self.eq(other)
    }
}

fn main() {}