]> git.lizzy.rs Git - rust.git/blob - tests/ui/missing-trait-bounds/issue-35677.stderr
Rollup merge of #106829 - compiler-errors:more-alias-combine, r=spastorino
[rust.git] / tests / ui / missing-trait-bounds / issue-35677.stderr
1 error[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    |
4 LL |     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`
12 help: consider restricting the type parameters to satisfy the trait bounds
13    |
14 LL | fn is_subset<T>(this: &HashSet<T>, other: &HashSet<T>) -> bool where T: Eq, T: Hash {
15    |                                                                ++++++++++++++++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0599`.