15 lines
240 B
Rust
15 lines
240 B
Rust
|
|
fn main()
|
|
{
|
|
let my_string: *[u8] = "hello world";
|
|
// expect: hello world
|
|
print(my_string);
|
|
// expect: 104
|
|
print(my_string.*[0]);
|
|
// expect: 11
|
|
print(len(my_string));
|
|
}
|
|
|
|
// vim: syntax=rust commentstring=//\ %s
|
|
|