Sign in
fuchsia
/
third_party
/
rust
/
1e5ec0a12c73efdd9a492fdc7ab661d90dc5bcf5
/
.
/
tests
/
ui
/
numeric
/
numeric-cast-2.rs
blob: ad2de5d2bd516209f06c672a65f638b9010e660a [
file
] [
log
] [
blame
]
fn
foo
()
->
i32
{
4
}
fn
main
()
{
let
x
:
u16
=
foo
();
//~^ ERROR mismatched types
let
y
:
i64
=
x
+
x
;
//~^ ERROR mismatched types
let
z
:
i32
=
x
+
x
;
//~^ ERROR mismatched types
}