Trailing newlines again
This commit is contained in:
parent
8bdb11c4d9
commit
14218e3969
@ -5,4 +5,4 @@
|
||||
pub(crate) struct NonZero<T>(pub(crate) T);
|
||||
fn main() {
|
||||
let _x = NonZero(0); //~ ERROR initializing type with `rustc_layout_scalar_valid_range` attr
|
||||
}
|
||||
}
|
||||
|
@ -6,4 +6,4 @@ pub(crate) struct NonZero<T>(pub(crate) T);
|
||||
fn main() {
|
||||
let mut x = unsafe { NonZero(1) };
|
||||
let y = &mut x.0; //~ ERROR borrow of layout constrained field is unsafe
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user