Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
resolve
/
disambiguate-identical-names.rs
blob: 708d2cd76a1d9f3170b888296ff0289ca76ad0ad [
file
] [
log
] [
blame
] [
edit
]
pub
mod
submod
{
// Create ambiguity with the std::vec::Vec item:
pub
struct
Vec
;
}
fn
test
(
_v
:
&
Vec
<
Vec
<
u32
>>)
{
}
fn
main
()
{
let
v
=
std
::
collections
::
HashMap
::
new
();
v
.
insert
(
3u8
,
1u8
);
test
(&
v
);
//~^ ERROR mismatched types
}