]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/derives/issue-91550.rs
1 use std
::collections
::HashSet
;
3 /// natural case from the issue
7 let hs
= HashSet
::<Value
>::new();
8 hs
.insert(Value(0)); //~ ERROR
15 impl<T
: Eq
> Object
<T
> {
18 impl<T
: Ord
> Object
<T
> {
21 impl<T
: Ord
+ PartialOrd
> Object
<T
> {
22 fn use_ord_and_partial_ord(&self) {}
25 fn function(foo
: Object
<NoDerives
>) {
26 foo
.use_eq(); //~ ERROR
27 foo
.use_ord(); //~ ERROR
28 foo
.use_ord_and_partial_ord(); //~ ERROR