We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bdb11c commit 14218e3Copy full SHA for 14218e3
src/test/ui/unsafe/ranged_ints.rs
@@ -5,4 +5,4 @@
5
pub(crate) struct NonZero<T>(pub(crate) T);
6
fn main() {
7
let _x = NonZero(0); //~ ERROR initializing type with `rustc_layout_scalar_valid_range` attr
8
-}
+}
src/test/ui/unsafe/ranged_ints2.rs
@@ -6,4 +6,4 @@ pub(crate) struct NonZero<T>(pub(crate) T);
let mut x = unsafe { NonZero(1) };
let y = &mut x.0; //~ ERROR borrow of layout constrained field is unsafe
9
0 commit comments