2 // [thir]compile-flags: -Z thir-unsafeck
4 #![feature(rustc_attrs)]
6 #[rustc_layout_scalar_valid_range_start(1)]
8 pub(crate) struct NonZero<T>(pub(crate) T);
10 let _x = NonZero(0); //~ ERROR initializing type with `rustc_layout_scalar_valid_range` attr