summary refs log tree commit diff
path: root/src/test/ui/str-multiline.rs
blob: 2b2e001d8bb7fa85e59eccbb61b2df3de22ee46a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// run-pass

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());
}