summary refs log tree commit diff
path: root/src/test/run-pass/str-multiline.rs
blob: faf992fabf167552cad5877adaa4b8f501544c2b (plain)
1
2
3
4
5
6
7
8
9
10
11
pub fn main() {
    let a: String = "this \
is a test".to_string();
    let b: String =
        "this \
              is \
              another \
              test".to_string();
    assert_eq!(a, "this is a test".to_string());
    assert_eq!(b, "this is another test".to_string());
}