blob: 97d288e5cb14476080293a98703e99e52563cdf8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//@ dont-require-annotations: NOTE
use std::collections::HashSet;
fn main() {
let mut v = Vec::new();
foo(&mut v);
//~^ ERROR mismatched types
//~| NOTE expected `&mut HashSet<u32>`, found `&mut Vec<_>`
}
fn foo(h: &mut HashSet<u32>) {
}
|