Sign in
fuchsia
/
third_party
/
rust
/
a10a02bf5fd00e4b34f1856af17d058dd5ec06f0
/
.
/
src
/
test
/
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
);
}