diff options
Diffstat (limited to 'src/test/ui/derives/issue-91550.rs')
-rw-r--r-- | src/test/ui/derives/issue-91550.rs | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/test/ui/derives/issue-91550.rs b/src/test/ui/derives/issue-91550.rs deleted file mode 100644 index 56fd5ffa8..000000000 --- a/src/test/ui/derives/issue-91550.rs +++ /dev/null @@ -1,29 +0,0 @@ -use std::collections::HashSet; - -/// natural case from the issue -struct Value(u32); - -fn main() { - let hs = HashSet::<Value>::new(); - hs.insert(Value(0)); //~ ERROR -} - -/// synthetic cases -pub struct NoDerives; - -struct Object<T>(T); -impl<T: Eq> Object<T> { - fn use_eq(&self) {} -} -impl<T: Ord> Object<T> { - fn use_ord(&self) {} -} -impl<T: Ord + PartialOrd> Object<T> { - fn use_ord_and_partial_ord(&self) {} -} - -fn function(foo: Object<NoDerives>) { - foo.use_eq(); //~ ERROR - foo.use_ord(); //~ ERROR - foo.use_ord_and_partial_ord(); //~ ERROR -} |