rust/tests/ui/hygiene/panic-location.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
373 B
Rust
Raw Normal View History

2020-03-17 11:45:02 -04:00
//@ run-fail
//@ check-run-results
//@ exec-env:RUST_BACKTRACE=0
//@ normalize-stderr-test: ".rs:\d+:\d+" -> ".rs:LL:CC"
2020-03-17 11:45:02 -04:00
//
// Regression test for issue #70963
// The captured stderr from this test reports a location
// inside `VecDeque::with_capacity`, instead of `<::core::macros::panic macros>`
fn main() {
std::collections::VecDeque::<String>::with_capacity(!0);
}