10 lines
302 B
Rust
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() {}
|