diff options
Diffstat (limited to 'tests/ui/proc-macro/load-panic.rs')
-rw-r--r-- | tests/ui/proc-macro/load-panic.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/proc-macro/load-panic.rs b/tests/ui/proc-macro/load-panic.rs new file mode 100644 index 000000000..6ce88c400 --- /dev/null +++ b/tests/ui/proc-macro/load-panic.rs @@ -0,0 +1,11 @@ +// aux-build:test-macros.rs +// needs-unwind proc macro panics to report errors + +#[macro_use] +extern crate test_macros; + +#[derive(Panic)] +//~^ ERROR: proc-macro derive panicked +struct Foo; + +fn main() {} |