From 218caa410aa38c29984be31a5229b9fa717560ee Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:13 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/derives/issue-91550.stderr | 84 ---------------------------------- 1 file changed, 84 deletions(-) delete mode 100644 src/test/ui/derives/issue-91550.stderr (limited to 'src/test/ui/derives/issue-91550.stderr') diff --git a/src/test/ui/derives/issue-91550.stderr b/src/test/ui/derives/issue-91550.stderr deleted file mode 100644 index 12be26956..000000000 --- a/src/test/ui/derives/issue-91550.stderr +++ /dev/null @@ -1,84 +0,0 @@ -error[E0599]: the method `insert` exists for struct `HashSet`, but its trait bounds were not satisfied - --> $DIR/issue-91550.rs:8:8 - | -LL | struct Value(u32); - | ------------ - | | - | doesn't satisfy `Value: Eq` - | doesn't satisfy `Value: Hash` -... -LL | hs.insert(Value(0)); - | ^^^^^^ - | - = note: the following trait bounds were not satisfied: - `Value: Eq` - `Value: Hash` -help: consider annotating `Value` with `#[derive(Eq, Hash, PartialEq)]` - | -LL | #[derive(Eq, Hash, PartialEq)] - | - -error[E0599]: the method `use_eq` exists for struct `Object`, but its trait bounds were not satisfied - --> $DIR/issue-91550.rs:26:9 - | -LL | pub struct NoDerives; - | -------------------- doesn't satisfy `NoDerives: Eq` -LL | -LL | struct Object(T); - | ---------------- method `use_eq` not found for this struct -... -LL | foo.use_eq(); - | ^^^^^^ method cannot be called on `Object` due to unsatisfied trait bounds - | - = note: the following trait bounds were not satisfied: - `NoDerives: Eq` -help: consider annotating `NoDerives` with `#[derive(Eq, PartialEq)]` - | -LL | #[derive(Eq, PartialEq)] - | - -error[E0599]: the method `use_ord` exists for struct `Object`, but its trait bounds were not satisfied - --> $DIR/issue-91550.rs:27:9 - | -LL | pub struct NoDerives; - | -------------------- doesn't satisfy `NoDerives: Ord` -LL | -LL | struct Object(T); - | ---------------- method `use_ord` not found for this struct -... -LL | foo.use_ord(); - | ^^^^^^^ method cannot be called on `Object` due to unsatisfied trait bounds - | - = note: the following trait bounds were not satisfied: - `NoDerives: Ord` -help: consider annotating `NoDerives` with `#[derive(Eq, Ord, PartialEq, PartialOrd)]` - | -LL | #[derive(Eq, Ord, PartialEq, PartialOrd)] - | - -error[E0599]: the method `use_ord_and_partial_ord` exists for struct `Object`, but its trait bounds were not satisfied - --> $DIR/issue-91550.rs:28:9 - | -LL | pub struct NoDerives; - | -------------------- - | | - | doesn't satisfy `NoDerives: Ord` - | doesn't satisfy `NoDerives: PartialOrd` -LL | -LL | struct Object(T); - | ---------------- method `use_ord_and_partial_ord` not found for this struct -... -LL | foo.use_ord_and_partial_ord(); - | ^^^^^^^^^^^^^^^^^^^^^^^ method cannot be called on `Object` due to unsatisfied trait bounds - | - = note: the following trait bounds were not satisfied: - `NoDerives: Ord` - `NoDerives: PartialOrd` -help: consider annotating `NoDerives` with `#[derive(Eq, Ord, PartialEq, PartialOrd)]` - | -LL | #[derive(Eq, Ord, PartialEq, PartialOrd)] - | - -error: aborting due to 4 previous errors - -For more information about this error, try `rustc --explain E0599`. -- cgit v1.2.3