Sign in
fuchsia
/
third_party
/
rust
/
08351004125c4d49aa757f2c3ec2340f7469ea91
/
.
/
src
/
test
/
ui
/
issues
/
issue-13359.rs
blob: 7409426dc39b0a23ea20785b59b9f6b975848cb3 [
file
] [
log
] [
blame
]
fn
foo
(
_s
:
i16
)
{
}
fn
bar
(
_s
:
u32
)
{
}
fn
main
()
{
foo
(
1
*(
1
as
isize
));
//~^ ERROR mismatched types
//~| expected i16, found isize
bar
(
1
*(
1
as
usize
));
//~^ ERROR mismatched types
//~| expected u32, found usize
}