Sign in
fuchsia
/
third_party
/
rust
/
298770406200600be3eedb753d262401b2d59678
/
.
/
src
/
test
/
run-pass
/
try-from-int-error-partial-eq.rs
blob: e9b53f2d1c8df981372aa1ad40f93f418f7f9620 [
file
] [
log
] [
blame
]
#![
allow
(
unused_must_use
)]
use
std
::
convert
::
TryFrom
;
use
std
::
num
::
TryFromIntError
;
fn
main
()
{
let
x
:
u32
=
125
;
let
y
:
Result
<
u8
,
TryFromIntError
>
=
u8
::
try_from
(
x
);
y
==
Ok
(
125
);
}