Sign in
fuchsia
/
third_party
/
rust
/
1e3b57ee7754702ce9fcef73686b5bcee405dd4a
/
.
/
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
}