rust/tests/ui/issues/issue-34229.rs

6 lines
150 B
Rust

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