diff options
Diffstat (limited to 'tests/ui/hygiene/panic-location.rs')
-rw-r--r-- | tests/ui/hygiene/panic-location.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/hygiene/panic-location.rs b/tests/ui/hygiene/panic-location.rs new file mode 100644 index 000000000..5cf169dfb --- /dev/null +++ b/tests/ui/hygiene/panic-location.rs @@ -0,0 +1,10 @@ +// run-fail +// check-run-results +// exec-env:RUST_BACKTRACE=0 +// +// 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); +} |