summaryrefslogtreecommitdiffstats
path: root/tests/ui/missing-trait-bounds/issue-35677.rs
blob: 2cb394386b8aaf95cff763a357852e0974024764 (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 {
    this.is_subset(other)
    //~^ ERROR the method
}

fn main() {}