slice::from_elem was removed