fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0599]: the method `is_subset` exists for reference `&HashSet<T>`, but its trait bounds were not satisfied 2 --> $DIR/issue-35677.rs:7:10 3 | 4LL | this.is_subset(other) 5 | ^^^^^^^^^ method cannot be called on `&HashSet<T>` due to unsatisfied trait bounds 6 | 7 = note: the following trait bounds were not satisfied: 8 `T: Eq` 9 `T: PartialEq` 10 which is required by `T: Eq` 11 `T: Hash` 12help: consider restricting the type parameters to satisfy the trait bounds 13 | 14LL | fn is_subset<T>(this: &HashSet<T>, other: &HashSet<T>) -> bool where T: Eq, T: Hash { 15 | ++++++++++++++++++++ 16 17error: aborting due to previous error 18 19For more information about this error, try `rustc --explain E0599`.