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

8 lines
100 B
Rust
Raw Normal View History

2010-06-23 23:03:09 -05:00
2010-06-23 23:03:09 -05:00
fn main() {
auto s = "hello";
let u8 c = s.(4);
log c;
assert (c == 0x6f as u8);
}