Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
issues
/
issue-24819.rs
blob: fb4cfb7b29e8b5c5a22c21608558808d61253d10 [
file
] [
log
] [
blame
] [
edit
]
use
std
::
collections
::
HashSet
;
fn
main
()
{
let
mut
v
=
Vec
::
new
();
foo
(&
mut
v
);
//~^ ERROR mismatched types
//~| expected `&mut HashSet<u32>`, found `&mut Vec<_>`
}
fn
foo
(
h
:
&
mut
HashSet
<
u32
>)
{
}