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 21:17:54 +00:00
#[derive(PartialEq)] struct Comparable;
#[derive(PartialEq, PartialOrd)] struct Nope(Comparable);
2018-11-27 09:56:36 +00:00
//~^ ERROR can't compare `Comparable`
2018-10-15 21:17:54 +00:00
fn main() {}