rust/src/test/ui/issues/issue-35677.rs
Anthony Ramine d9e2259d65 Relax some Hash bounds on HashMap<K, V, S> and HashSet<T, S>
Notably, hash iterators don't require any trait bounds to be iterated.
2019-02-13 12:23:14 +01:00

9 lines
170 B
Rust

use std::collections::HashSet;
fn is_subset<T>(this: &HashSet<T>, other: &HashSet<T>) -> bool {
this.is_subset(other)
//~^ ERROR no method named
}
fn main() {}