2022-11-28 22:38:39 -06:00
|
|
|
// aux-build:issue-104884.rs
|
|
|
|
|
|
|
|
use std::collections::BinaryHeap;
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
extern crate issue_104884;
|
|
|
|
|
|
|
|
#[derive(PartialEq, Eq, PartialOrd, Ord)]
|
|
|
|
struct PriorityQueueEntry<T> {
|
|
|
|
value: T,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(PartialOrd, AddImpl)]
|
|
|
|
//~^ ERROR can't compare `PriorityQueue<T>` with `PriorityQueue<T>`
|
|
|
|
//~| ERROR the trait bound `PriorityQueue<T>: Eq` is not satisfied
|
|
|
|
//~| ERROR can't compare `T` with `T`
|
2024-02-09 06:17:55 -06:00
|
|
|
//~| ERROR `BinaryHeap<PriorityQueueEntry<T>>` is not an iterator
|
|
|
|
//~| ERROR no field `height` on type `&PriorityQueue<T>`
|
2022-11-28 22:38:39 -06:00
|
|
|
|
|
|
|
struct PriorityQueue<T>(BinaryHeap<PriorityQueueEntry<T>>);
|
2024-02-09 06:17:55 -06:00
|
|
|
//~^ ERROR can't compare `BinaryHeap<PriorityQueueEntry<T>>` with `_`
|
2022-11-28 22:38:39 -06:00
|
|
|
fn main() {}
|