rust/tests/ui/issues/issue-34229.rs
2023-01-11 09:32:08 +00:00

6 lines
150 B
Rust

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