rust/tests/ui/hygiene/panic-location.rs
2024-09-20 01:20:10 +03:00

11 lines
314 B
Rust

//@ run-fail
//@ check-run-results
//@ exec-env:RUST_BACKTRACE=0
//@ normalize-stderr-test: ".rs:\d+:\d+" -> ".rs:LL:CC"
//
// Regression test for issue #70963
// The reported panic location should not be `<::core::macros::panic macros>`.
fn main() {
std::collections::VecDeque::<String>::with_capacity(!0);
}