rust/tests/ui/missing-trait-bounds/issue-35677.fixed

12 lines
257 B
Rust

// 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, T: PartialEq {
this.is_subset(other)
//~^ ERROR the method
}
fn main() {}