summaryrefslogtreecommitdiffstats
path: root/vendor/proc-macro-error/tests/ui/misuse.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/proc-macro-error/tests/ui/misuse.rs')
-rw-r--r--vendor/proc-macro-error/tests/ui/misuse.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/proc-macro-error/tests/ui/misuse.rs b/vendor/proc-macro-error/tests/ui/misuse.rs
new file mode 100644
index 000000000..e6d2d2497
--- /dev/null
+++ b/vendor/proc-macro-error/tests/ui/misuse.rs
@@ -0,0 +1,11 @@
+extern crate proc_macro_error;
+use proc_macro_error::abort;
+
+struct Foo;
+
+#[allow(unused)]
+fn foo() {
+ abort!(Foo, "BOOM");
+}
+
+fn main() {}