Skip to content

Instantly share code, notes, and snippets.

@cbzehner
Created February 19, 2018 00:54
Show Gist options
  • Save cbzehner/88e8ae69b9000089b658f519c7c23fb9 to your computer and use it in GitHub Desktop.
Save cbzehner/88e8ae69b9000089b658f519c7c23fb9 to your computer and use it in GitHub Desktop.
$cargo run
Compiling slice_test v0.1.0 (file:///Users/cbzehner/Projects/rust/slice_test)
Finished dev [unoptimized + debuginfo] target(s) in 0.71 secs
Running `target/debug/slice_test`
thread 'main' panicked at 'byte index 1 is not a char boundary; it is inside '🦀' (bytes 0..4) of `🦀 is 🔥`', src/libcore/str/mod.rs:2234:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment