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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
150 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`
2018-10-15 16:17:54 -05:00
fn main() {}