Sign in
android
/
toolchain
/
rustc
/
5139364148b53d79de1b5e778004d41a6a33a4a2
/
.
/
tests
/
ui
/
try-from-int-error-partial-eq.rs
blob: 6ee4a4cf319244ece0f87086ee817c45808cd82c [
file
] [
log
] [
blame
]
// run-pass
#![
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
);
}