Sign in
android
/
toolchain
/
rustc
/
ee32a8b31351dab7161ea2edd877e46fc49c72d0
/
.
/
tests
/
ui
/
unsafe
/
ranged_ints_macro.rs
blob: 0acc3e0f6b1a826035c4039d0c3e306258df455b [
file
] [
log
] [
blame
]
// build-pass
#![
feature
(
rustc_attrs
)]
macro_rules
!
apply
{
(
$val
:
expr
)
=>
{
#[
rustc_layout_scalar_valid_range_start
(
$val
)]
#[
repr
(
transparent
)]
pub
(
crate
)
struct
NonZero
<
T
>(
pub
(
crate
)
T
);
}
}
apply
!(
1
);
fn
main
()
{
let
_x
=
unsafe
{
NonZero
(
1
)
};
}