diff options
Diffstat (limited to 'third_party/rust/proc-macro-error/tests/ui/misuse.rs')
-rw-r--r-- | third_party/rust/proc-macro-error/tests/ui/misuse.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/third_party/rust/proc-macro-error/tests/ui/misuse.rs b/third_party/rust/proc-macro-error/tests/ui/misuse.rs new file mode 100644 index 0000000000..e6d2d24971 --- /dev/null +++ b/third_party/rust/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() {} |