summaryrefslogtreecommitdiffstats
path: root/src/test/ui/missing-trait-bounds/issue-35677.fixed
blob: 08174d8d8d53ad476ed5212c055012b1a15136ea (plain)
1
2
3
4
5
6
7
8
9
10
11
// run-rustfix
#![allow(dead_code)]
use std::collections::HashSet;
use std::hash::Hash;

fn is_subset<T>(this: &HashSet<T>, other: &HashSet<T>) -> bool where T: Eq, T: Hash {
    this.is_subset(other)
    //~^ ERROR the method
}

fn main() {}