You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found by @MaloJaffre: The following code causes UB (not observable through crashes, but still):
use std::collections::VecDeque;fnmain(){println!("{:?}",VecDeque::<u32>::new().iter());}
This will create a VecDeque ring with capacity 8, then turn that into a slice for Iter, and then print that entire slice. Run it in Miri to see for yourself (Miri is in the "tools" menu).
hellow554, Eh2406, lqd and shenjackyuanjieshepmaster