about summary refs log tree commit diff
path: root/tests/ui/proc-macro/custom-attr-panic.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-19 13:41:13 +0000
committerbors <bors@rust-lang.org>2024-02-19 13:41:13 +0000
commite29a1530f670d66f617f7aac8601920a87263ac6 (patch)
tree15b760fb602a870653fdfc0fff6ac294ea8bd930 /tests/ui/proc-macro/custom-attr-panic.rs
parent43d3470f11a18d7bfa0b288954bf327cbf7549ab (diff)
parent3fe809b38de2597f211a149e87eee15ea8f5ccdd (diff)
downloadrust-e29a1530f670d66f617f7aac8601920a87263ac6.tar.gz
rust-e29a1530f670d66f617f7aac8601920a87263ac6.zip
Auto merge of #121295 - matthiaskrgr:rollup-j2vffew, r=matthiaskrgr
Rollup of 6 pull requests

Successful merges:

 - #119808 (Store core::str::CharSearcher::utf8_size as u8)
 - #121032 (Continue reporting remaining errors instead of silently dropping them)
 - #121041 (Add `Future` and `IntoFuture` to the 2024 prelude)
 - #121230 (Extend Level API)
 - #121272 (Add diagnostic items for legacy numeric constants)
 - #121275 (add test for panicking attribute macros)

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'tests/ui/proc-macro/custom-attr-panic.rs')
-rw-r--r--tests/ui/proc-macro/custom-attr-panic.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/custom-attr-panic.rs b/tests/ui/proc-macro/custom-attr-panic.rs
new file mode 100644
index 00000000000..23bcb66319d
--- /dev/null
+++ b/tests/ui/proc-macro/custom-attr-panic.rs
@@ -0,0 +1,8 @@
+//@ aux-build: test-macros.rs
+
+extern crate test_macros;
+
+#[test_macros::panic_attr] //~ ERROR custom attribute panicked
+fn foo() {}
+
+fn main() {}