]> git.lizzy.rs Git - rust.git/blob - src/test/ui/missing-trait-bounds/issue-35677.rs
Rollup merge of #99516 - m-ou-se:proc-macro-tracked-tracking-issue, r=Mark-Simulacrum
[rust.git] / src / test / ui / missing-trait-bounds / issue-35677.rs
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 {
7     this.is_subset(other)
8     //~^ ERROR the method
9 }
10
11 fn main() {}