rust/tests/ui/missing-trait-bounds/issue-35677.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
750 B
Plaintext
Raw Normal View History

error[E0599]: the method `is_subset` exists for reference `&HashSet<T>`, but its trait bounds were not satisfied
--> $DIR/issue-35677.rs:7:10
2018-12-12 23:58:27 +00:00
|
LL | this.is_subset(other)
| ^^^^^^^^^ method cannot be called on `&HashSet<T>` due to unsatisfied trait bounds
2018-12-12 23:58:27 +00:00
|
= note: the following trait bounds were not satisfied:
`T: Eq`
`T: Hash`
help: consider restricting the type parameters to satisfy the trait bounds
|
LL | fn is_subset<T>(this: &HashSet<T>, other: &HashSet<T>) -> bool where T: Eq, T: Hash {
| ++++++++++++++++++++
2018-12-12 23:58:27 +00:00
error: aborting due to 1 previous error
2018-12-12 23:58:27 +00:00
For more information about this error, try `rustc --explain E0599`.