rust/src/test/run-pass/str-concat.rs
2011-07-27 15:54:33 +02:00

11 lines
152 B
Rust

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