Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
derives
/
invalid-derive-comparison-34229.rs
blob: d77ca78dc81670cc135e829ef03a220a87a32116 [
file
] [
log
] [
blame
]
#[
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