1 // aux-build:issue-104884.rs
3 use std::collections::BinaryHeap;
6 extern crate issue_104884;
8 #[derive(PartialEq, Eq, PartialOrd, Ord)]
9 struct PriorityQueueEntry<T> {
13 #[derive(PartialOrd, AddImpl)]
14 //~^ ERROR can't compare `PriorityQueue<T>` with `PriorityQueue<T>`
15 //~| ERROR the trait bound `PriorityQueue<T>: Eq` is not satisfied
16 //~| ERROR can't compare `T` with `T`
18 struct PriorityQueue<T>(BinaryHeap<PriorityQueueEntry<T>>);