diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-24819.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-24819.rs b/src/test/ui/issues/issue-24819.rs new file mode 100644 index 000000000..59c3f2cd1 --- /dev/null +++ b/src/test/ui/issues/issue-24819.rs @@ -0,0 +1,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>) { +} |