summaryrefslogtreecommitdiffstats
path: root/third_party/rust/proc-macro-error/tests/ui/dummy.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/proc-macro-error/tests/ui/dummy.rs')
-rw-r--r--third_party/rust/proc-macro-error/tests/ui/dummy.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/third_party/rust/proc-macro-error/tests/ui/dummy.rs b/third_party/rust/proc-macro-error/tests/ui/dummy.rs
new file mode 100644
index 0000000000..caa4827886
--- /dev/null
+++ b/third_party/rust/proc-macro-error/tests/ui/dummy.rs
@@ -0,0 +1,13 @@
+extern crate test_crate;
+use test_crate::*;
+
+enum NeedDefault {
+ A,
+ B
+}
+
+dummy!(need_default);
+
+fn main() {
+ let _ = NeedDefault::default();
+}