]> git.proxmox.com Git - rustc.git/blob - src/test/ui/str-concat.rs
New upstream version 1.42.0+dfsg0+pve1
[rustc.git] / src / test / ui / str-concat.rs
1 // run-pass
2
3 pub fn main() {
4 let a: String = "hello".to_string();
5 let b: String = "world".to_string();
6 let s: String = format!("{}{}", a, b);
7 println!("{}", s.clone());
8 assert_eq!(s.as_bytes()[9], 'd' as u8);
9 }