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

11 lines
149 B
Rust
Raw Normal View History

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