Sign in
android
/
toolchain
/
rustc
/
ff3f07ae99a30006dd85b9d73084edd9355c9db6
/
.
/
src
/
test
/
ui
/
issues
/
issue-4517.rs
blob: bbe81f3fc7820ebf265f3b04c6279ffd8a947593 [
file
] [
log
] [
blame
]
fn
bar
(
int_param
:
usize
)
{}
fn
main
()
{
let
foo
:
[
u8
;
4
]
=
[
1
;
4
];
bar
(
foo
);
//~^ ERROR mismatched types
//~| expected type `usize`
//~| found type `[u8; 4]`
//~| expected usize, found array of 4 elements
}