summary refs log tree commit diff
path: root/src/test/run-pass/str-concat.rs
blob: a0392f479c8d455c0c1d3e112a863afc94b229f6 (plain)
1
2
3
4
5
6
7
pub fn main() {
    let a: String = "hello".to_string();
    let b: String = "world".to_string();
    let s: String = format!("{}{}", a, b);
    println!("{}", s.clone());
    assert_eq!(s.as_bytes()[9], 'd' as u8);
}