/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
- // -*- rust -*-
- fn main() {
- let a: ~str = ~"hello";
- let b: ~str = ~"world";
- let s: ~str = a + b;
- log(debug, s);
- assert (s[9] == 'd' as u8);
- }