]> git.lizzy.rs Git - rust.git/blob - tests/ui/proc-macro/issue-104884-trait-impl-sugg-err.rs
Rollup merge of #106816 - TimNN:rental-remap, r=oli-obj
[rust.git] / tests / ui / proc-macro / issue-104884-trait-impl-sugg-err.rs
1 // aux-build:issue-104884.rs
2
3 use std::collections::BinaryHeap;
4
5 #[macro_use]
6 extern crate issue_104884;
7
8 #[derive(PartialEq, Eq, PartialOrd, Ord)]
9 struct PriorityQueueEntry<T> {
10     value: T,
11 }
12
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`
17
18 struct PriorityQueue<T>(BinaryHeap<PriorityQueueEntry<T>>);
19
20 fn main() {}