summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/empty-where-clause.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/proc-macro/empty-where-clause.rs')
-rw-r--r--src/test/ui/proc-macro/empty-where-clause.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/empty-where-clause.rs b/src/test/ui/proc-macro/empty-where-clause.rs
new file mode 100644
index 000000000..719555c09
--- /dev/null
+++ b/src/test/ui/proc-macro/empty-where-clause.rs
@@ -0,0 +1,18 @@
+// aux-build:test-macros.rs
+
+extern crate test_macros;
+use test_macros::recollect_attr;
+
+#[recollect_attr]
+struct FieldStruct where {
+ field: MissingType1 //~ ERROR cannot find
+}
+
+#[recollect_attr]
+struct TupleStruct(MissingType2) where; //~ ERROR cannot find
+
+enum MyEnum where {
+ Variant(MissingType3) //~ ERROR cannot find
+}
+
+fn main() {}