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>) {
|
|
}
|