Closed
Description
Example program:
use std::mem;
struct AlignmentStruct {
ptr: *mut [AlignmentStruct, ..1]
}
fn main() {
println!("{}", ::std::mem::align_of::<AlignmentStruct>());
}
Error message:
rustc: /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/llvm/lib/IR/DataLayout.cpp:636: unsigned int llvm::DataLayout::getAlignment(llvm::Type*, bool) const: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' failed.