mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
12 lines
243 B
Rust
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() {}
|