We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d60e70 commit 36465fcCopy full SHA for 36465fc
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 9d21cf3b6188133759eab3e588555a9389a38ff5
+refs/heads/master: 764de078e7c4baaf0a1f426e7ac4d834c2ea8797
trunk/src/test/run-pass/export-unexported-dep.rs
@@ -0,0 +1,24 @@
+// This tests that exports can have visible dependencies on things
+// that are not exported, allowing for a sort of poor-man's ADT
3
+
4
+mod foo {
5
+ export f;
6
+ export g;
7
8
+ // not exported
9
+ tag t {
10
+ t1;
11
+ }
12
13
+ fn f() -> t {
14
+ ret t1;
15
16
17
+ fn g(t v) {
18
+ assert v == t1;
19
20
+}
21
22
+fn main() {
23
+ foo.g(foo.f());
24
0 commit comments