]> git.lizzy.rs Git - rust.git/blob - src/test/ui/str-concat.rs
Mark __msan_track_origins as an exported symbol for LTO
[rust.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 }