rust/tests/ui/issues/issue-24819.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
212 B
Rust
Raw Normal View History

use std::collections::HashSet;
fn main() {
let mut v = Vec::new();
foo(&mut v);
//~^ ERROR mismatched types
//~| expected struct `HashSet`, found struct `Vec`
}
fn foo(h: &mut HashSet<u32>) {
}