Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try
/
.
/
tests
/
ui
/
issues
/
issue-24819.rs
blob: 97d288e5cb14476080293a98703e99e52563cdf8 [
file
] [
log
] [
blame
]
//@ 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
>)
{
}