]> git.lizzy.rs Git - rust.git/blob - tests/ui/missing-trait-bounds/issue-35677.fixed
Rollup merge of #106244 - atouchet:readme3, r=workingjubilee
[rust.git] / tests / 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() {}