Closed
Description
> rustc --version -v
rustc 1.28.0-nightly (e3bf634e0 2018-06-28)
binary: rustc
commit-hash: e3bf634e060bc2f8665878288bcea02008ca346e
commit-date: 2018-06-28
host: i686-pc-windows-msvc
release: 1.28.0-nightly
LLVM version: 6.0
Optimized code of the following program panics if -C codegen-units
is not 1.
struct S([u32; 2]);
fn main() {
let x = vec![S([1, 2])];
let mut it = x.iter();
if let Some(_) = it.next_back() {
assert!(it.next_back().is_none());
}
}