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"
576576globbing to compress three `use` statements into one (this sort of syntax
577577may be familiar if you' ve written Linux shell scripts before). The
578578uncompressed form of this statement would be:
579+
579580` ` ` rust,ignore
580581use sayings::english;
581582use sayings::english::greetings as en_greetings;
582583use sayings::english::farewells as en_farewells;
583584` ` `
585+
584586As you can see, the curly brackets compress ` use` statements for several items
585587under the same path, and in this context ` self` just refers back to that path.
586588Note: The curly brackets cannot be nested or mixed with star globbing.
You can’t perform that action at this time.
0 commit comments