Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unreachable_code)]
- fn main() {
- println!("{:?}", {
- let x = 4; &[0, 1, 2, 3][x-10..]
- });
- }
- /* ~~~~=== stderr ===~~~~
- Compiling playground v0.0.1 (/playground)
- Finished release [optimized] target(s) in 0.58s
- Running `target/release/playground`
- thread 'main' panicked at 'slice index starts at 18446744073709551610 but ends at 4', src/libcore/slice/mod.rs:2355:5
- note: Run with `RUST_BACKTRACE=1` for a backtrace.
- */
- /* ~~~~=== stdout ===~~~~
- */
Add Comment
Please, Sign In to add comment