mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 15:39:20 +00:00
12 lines
244 B
Plaintext
12 lines
244 B
Plaintext
//@ 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() {}
|