#![allow(dead_code, deprecated, unused_variables, unused_mut)] fn main() { let chars = ['g', 'd', 'k', 'k', 'n']; let hello: String = chars .into_iter() .map(|x| x as u8) .map(|x| (x + 1) as char) .collect(); assert_eq!("hello", hello); }