PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/run-pass/str-concat.rs

http://github.com/jruderman/rust
Rust | 11 lines | 7 code | 3 blank | 1 comment | 1 complexity | 1d54c9e27c7b60f9f5d9d9abb1d62102 MD5 | raw file
 1
 2
 3
 4// -*- rust -*-
 5fn main() {
 6    let a: ~str = ~"hello";
 7    let b: ~str = ~"world";
 8    let s: ~str = a + b;
 9    log(debug, s);
10    assert (s[9] == 'd' as u8);
11}