Closed
Description
This code panics under Miri, and also when I compile to WASM, though not when running normally.
use std::collections::VecDeque;
fn main() {
let _: VecDeque<()> = vec![()].into();
}
thread 'main' panicked at 'attempt to add with overflow', /playground/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/alloc/src/collections/vec_deque.rs:3236:36
The overflow is here:
rust/library/alloc/src/collections/vec_deque.rs
Line 3236 in a53fb30