rust/src/test/ui/issues/issue-34229.rs

10 lines
302 B
Rust
Raw Normal View History

2018-10-15 16:17:54 -05:00
#[derive(PartialEq)] struct Comparable;
#[derive(PartialEq, PartialOrd)] struct Nope(Comparable);
2018-11-27 03:56:36 -06:00
//~^ ERROR can't compare `Comparable`
2020-01-08 11:02:10 -06:00
//~| ERROR can't compare `Comparable`
//~| ERROR can't compare `Comparable`
//~| ERROR can't compare `Comparable`
//~| ERROR can't compare `Comparable`
2018-10-15 16:17:54 -05:00
fn main() {}