This program: ``` rust extern crate url; use url::Url; fn main() { let mut url = Url::from_file_path("/").unwrap(); url.path_segments_mut().unwrap().pop_if_empty(); } ``` will panic with: ``` thread '<main>' panicked at 'index out of bounds: the len is 7 but the index is 7', src/lib.rs:1095 note: Run with `RUST_BACKTRACE=1` for a backtrace. ``` Oddly enough the "equivalent" program of `Url::parse("file://")` works just fine!