rust/src/test/ui/issues/issue-34229.rs
Vadim Petrochenkov 642669c74d Update tests
2020-01-09 21:23:12 +03:00

10 lines
302 B
Rust

#[derive(PartialEq)] struct Comparable;
#[derive(PartialEq, PartialOrd)] struct Nope(Comparable);
//~^ ERROR can't compare `Comparable`
//~| ERROR can't compare `Comparable`
//~| ERROR can't compare `Comparable`
//~| ERROR can't compare `Comparable`
//~| ERROR can't compare `Comparable`
fn main() {}