mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
12 lines
240 B
Rust
12 lines
240 B
Rust
|
use std::collections::HashSet;
|
||
|
|
||
|
fn main() {
|
||
|
let mut v = Vec::new();
|
||
|
foo(&mut v);
|
||
|
//~^ ERROR mismatched types
|
||
|
//~| expected struct `std::collections::HashSet`, found struct `std::vec::Vec`
|
||
|
}
|
||
|
|
||
|
fn foo(h: &mut HashSet<u32>) {
|
||
|
}
|