Skip to content

Commit 8d065a7

Browse files
committed
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 e192706 commit 8d065a7

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
@@ -340,7 +340,7 @@ The following are restrictions for valid `use` declarations.
340340
341341
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.
342342

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

346346
```rust

0 commit comments

Comments
 (0)