summaryrefslogtreecommitdiffstats
path: root/src/test/ui/proc-macro/issue-50493.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/proc-macro/issue-50493.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/issue-50493.rs b/src/test/ui/proc-macro/issue-50493.rs
new file mode 100644
index 000000000..ce0e0839f
--- /dev/null
+++ b/src/test/ui/proc-macro/issue-50493.rs
@@ -0,0 +1,13 @@
+// aux-build:issue-50493.rs
+
+#[macro_use]
+extern crate issue_50493;
+
+#[derive(Derive)]
+struct Restricted {
+ pub(in restricted) field: usize, //~ visibilities can only be restricted to ancestor modules
+}
+
+mod restricted {}
+
+fn main() {}