Closed
Description
use std::panic::panic_any;
fn main() {
panic_any(42);
}
Compiling playground v0.0.1 (/playground)
Finished dev [unoptimized + debuginfo] target(s) in 1.48s
Running `target/debug/playground`
thread 'main' panicked at 'Box<Any>', src/main.rs:3:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I would’ve expected it to say
thread 'main' panicked at 'Box<dyn Any>', src/main.rs:3:5
Relevant point in std
seems to be here.
@rustbot label C-enhancement, T-libs