rust/tests/ui/missing-trait-bounds/issue-35677.fixed
Esteban Küber 22a0e4fa6e Do not incorrectly suggest restricting implied bounds
When we have already suggested bounds that imply the about to be
suggested bound, skip them.
2023-01-13 20:50:34 +00:00

12 lines
243 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 {
this.is_subset(other)
//~^ ERROR the method
}
fn main() {}