2016-05-24 14:37:11 +03:00
|
|
|
use std::collections::HashSet;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let mut v = Vec::new();
|
|
|
|
foo(&mut v);
|
|
|
|
//~^ ERROR mismatched types
|
2023-01-02 18:00:33 -08:00
|
|
|
//~| expected `&mut HashSet<u32>`, found `&mut Vec<_>`
|
2016-05-24 14:37:11 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
fn foo(h: &mut HashSet<u32>) {
|
|
|
|
}
|