summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-24819.rs
blob: 59c3f2cd114de47d92b8da23ef8a11348b0bc956 (plain)
1
2
3
4
5
6
7
8
9
10
11
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>) {
}