]> git.lizzy.rs Git - rust.git/blob - src/test/ui/missing-trait-bounds/issue-35677.fixed
Rollup merge of #98692 - camelid:more-fixmes, r=GuillaumeGomez
[rust.git] / src / test / ui / missing-trait-bounds / issue-35677.fixed
1 // run-rustfix
2 #![allow(dead_code)]
3 use std::collections::HashSet;
4 use std::hash::Hash;
5
6 fn is_subset<T>(this: &HashSet<T>, other: &HashSet<T>) -> bool where T: Eq, T: Hash {
7     this.is_subset(other)
8     //~^ ERROR the method
9 }
10
11 fn main() {}