blob: fb4cfb7b29e8b5c5a22c21608558808d61253d10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
use std::collections::HashSet;
fn main() {
let mut v = Vec::new();
foo(&mut v);
//~^ ERROR mismatched types
//~| expected `&mut HashSet<u32>`, found `&mut Vec<_>`
}
fn foo(h: &mut HashSet<u32>) {
}
|