mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
62ba3e70a1
The previous output was unintuitive to users.
11 lines
216 B
Rust
11 lines
216 B
Rust
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>) {
|
|
}
|