diff --git a/src/librustc/ty/layout.rs b/src/librustc/ty/layout.rs index f580730064c3..342542edcf08 100644 --- a/src/librustc/ty/layout.rs +++ b/src/librustc/ty/layout.rs @@ -578,7 +578,7 @@ impl<'a, 'gcx, 'tcx> Struct { attr::ReprInt(_) => false, attr::ReprExtern => true, attr::ReprPacked => true, - attr::ReprSimd => bug!("Simd vectors should be represented as a layout::Vector") + attr::ReprSimd => bug!("Simd vectors should be represented as layout::Vector") } }); } diff --git a/src/test/run-pass/multiple-reprs.rs b/src/test/run-pass/multiple-reprs.rs index 7c6740d4fde5..726563e5b498 100644 --- a/src/test/run-pass/multiple-reprs.rs +++ b/src/test/run-pass/multiple-reprs.rs @@ -35,8 +35,8 @@ pub struct p0f_api_query { pub magic: u32, pub addr_type: u8, pub addr: [u8; 16], - } + pub fn main() { assert_eq!(size_of::(), 6); assert_eq!(size_of::(), 6);