#![allow(dead_code, deprecated, unused_variables, unused_mut)] #![feature(iter_next_chunk)] fn main() { let quote = "not all those who wander are lost"; let [first, second, third] = quote.split_whitespace().next_chunk().unwrap(); assert_eq!(first, "not"); assert_eq!(second, "all"); assert_eq!(third, "those"); }