Advertisement
cwchen

[Rust] Indexing a Rust string (error)

Aug 26th, 2017
731
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.05 KB | None | 0 0
  1. fn main() {
  2. assert_eq!("Hello"[0], "H");
  3. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement