Trailing newlines again

This commit is contained in:
Oliver Scherer 2018-11-03 23:39:29 +01:00
parent 8bdb11c4d9
commit 14218e3969
2 changed files with 2 additions and 2 deletions

View File

@ -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
}
}

View File

@ -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
}
}