```rust fn main() { let s = &[0, 1]; let _ = &s[0..4]; } ``` The current output is: ``` thread 'main' panicked at 'range end index 4 out of range for slice of length 2', library/core/src/slice/index.rs:73:5 ``` Ideally the output should look like: ``` thread 'main' panicked at 'range end index 4 out of range for slice of length 2', src/main.rs:3:21 ``` The error location should be in main.rs, and not library/core/.../index.rs
Activity
fmease commentedon Sep 14, 2022
This should already be fixed on nightly via #100759. Can you confirm this? This issue is probably a duplicate of #100696.
compiler-errors commentedon Sep 15, 2022
This is indeed fixed on nightly. Thanks for reporting the issue, closing now!