summary refs log tree commit diff
path: root/src/test/run-pass/str-idx.rs
blob: ef7e2c71eaa44a89a0d715a4e7cde0659762a33e (plain)
1
2
3
4
5
6
7
8


fn main() {
    let s = "hello";
    let c: u8 = s[4];
    log(debug, c);
    assert (c == 0x6f as u8);
}