File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -576,11 +576,13 @@ The third `use` statement bears more explanation. It's using "brace expansion"
576
576
globbing to compress three `use` statements into one (this sort of syntax
577
577
may be familiar if you' ve written Linux shell scripts before). The
578
578
uncompressed form of this statement would be:
579
+
579
580
` ` ` rust,ignore
580
581
use sayings::english;
581
582
use sayings::english::greetings as en_greetings;
582
583
use sayings::english::farewells as en_farewells;
583
584
` ` `
585
+
584
586
As you can see, the curly brackets compress ` use` statements for several items
585
587
under the same path, and in this context ` self` just refers back to that path.
586
588
Note: The curly brackets cannot be nested or mixed with star globbing.
You can’t perform that action at this time.
0 commit comments