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