mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
8 lines
201 B
Rust
8 lines
201 B
Rust
#[derive(PartialEq)] struct Comparable;
|
|
#[derive(PartialEq, PartialOrd)] struct Nope(Comparable);
|
|
//~^ ERROR can't compare `Comparable`
|
|
|
|
fn main() {}
|
|
|
|
// https://github.com/rust-lang/rust/issues/34229
|