Skip to content

Commit 766cd18

Browse files
Remove "or shadowed" caveat
The claim here was that: > Glob imports are allowed to import conflicting names in the same > namespace as long as the name is not used *or shadowed*. It's true that the name being used will cause an error. But it's not true that the name being shadowed will cause one, so let's remove that part.
1 parent 89ff4ad commit 766cd18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items/use-declarations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ The following are restrictions for valid `use` declarations:
343343
344344
Some situations are an error when there is an ambiguity as to which name a `use` declaration refers. This happens when there are two name candidates that do not resolve to the same entity.
345345

346-
Glob imports are allowed to import conflicting names in the same namespace as long as the name is not used or shadowed.
346+
Glob imports are allowed to import conflicting names in the same namespace as long as the name is not used.
347347
Example:
348348

349349
```rust

0 commit comments

Comments
 (0)