File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -82,10 +82,17 @@ mod values {
82
82
83
83
pub use self :: color :: Color ;
84
84
fn main () {
85
- color :: Color :: WHITE ; // actual path to the implementing type and impl in the same module
86
- color :: Color :: red (); // impl blocks in different modules are still accessed through a path to the type
87
- Color :: red (); // rexported paths to the implementing type also work
88
- // values::Color::red(); // Does not work, because use in `values` is not pub
85
+ // Actual path to the implementing type and impl in the same module.
86
+ color :: Color :: WHITE ;
87
+
88
+ // Impl blocks in different modules are still accessed through a path to the type.
89
+ color :: Color :: red ();
90
+
91
+ // Re-exported paths to the implementing type also work.
92
+ Color :: red ();
93
+
94
+ // Does not work, because use in `values` is not pub.
95
+ // values::Color::red();
89
96
}
90
97
```
91
98
You can’t perform that action at this time.
0 commit comments