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

12 lines
160 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() {
2011-07-27 07:19:39 -05:00
let a: str = "hello";
let b: str = "world";
let s: str = a + b;
log(debug, s);
assert (s[9] == 'd' as u8);
}