Skip to content

Getting started in the book should state how to get a backtrace #27428

Closed
@mdinger

Description

@mdinger

This is the most annoying and most useless error message ever if you don't know how to get a backtrace. The docs should state how to get one. Without a backtrace it's only helpful if you already know where the error isn't always the case.

This:

vec![1, 2][7];

Returns:

thread '<main>' panicked at 'index out of bounds: the len is 2 but the index is 7', /home/rustbuild/src/rust-buildbot/slave/stable-dist-rustc-linux/build/src/libcollections/vec.rs:1359
playpen: application terminated with error code 101

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions