summaryrefslogtreecommitdiffstats
path: root/src/test/ui/privacy/auxiliary
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/privacy/auxiliary')
-rw-r--r--src/test/ui/privacy/auxiliary/issue-75907.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/test/ui/privacy/auxiliary/issue-75907.rs b/src/test/ui/privacy/auxiliary/issue-75907.rs
new file mode 100644
index 000000000..389c9c351
--- /dev/null
+++ b/src/test/ui/privacy/auxiliary/issue-75907.rs
@@ -0,0 +1,17 @@
+pub struct Bar(pub u8, u8, u8);
+
+pub fn make_bar() -> Bar {
+ Bar(1, 12, 10)
+}
+
+mod inner {
+ pub struct Foo(u8, pub u8, u8);
+
+ impl Foo {
+ pub fn new() -> Foo {
+ Foo(1, 12, 10)
+ }
+ }
+}
+
+pub use inner::Foo;