Sign in
fuchsia
/
third_party
/
rust
/
a725a15ce2dff97768a588d3f83ba47af9d22a25
/
.
/
src
/
test
/
ui
/
consts
/
const-nonzero.rs
blob: 6db3d1b3331fa8d66798706a3f85148586c86209 [
file
] [
log
] [
blame
]
// build-pass (FIXME(62277): could be check-pass?)
use
std
::
num
::
NonZeroU8
;
const
X
:
NonZeroU8
=
unsafe
{
NonZeroU8
::
new_unchecked
(
5
)
};
const
Y
:
u8
=
X
.
get
();
fn
main
()
{
}