/****************************************************************************** * This program demonstrates string concatenation. * * Copyright © 2020 Richard Lesh. All rights reserved. *****************************************************************************/ #![allow(dead_code)] #![allow(non_snake_case)] #![allow(non_upper_case_globals)] fn main() { let a:&'static str = "one"; let b:&'static str = "two"; let c:&'static str = "three"; let mut d:String = String::from(a) + b + c; println!("{}", d); d = String::from(a) + "\t" + b + "\n" + c; println!("{}", d); }