rust/src/test/run-pass/str-concat.rs
2012-12-05 16:51:32 -08:00

12 lines
170 B
Rust

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