You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/names/scopes.md
+2
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@ A [path] may be used to refer to an item in another module.
23
23
[Associated items] are not scoped and can only be referred to by using a [path] leading from the type they are associated with.
24
24
[Methods] can also be referred to via [call expressions].
25
25
26
+
Similar to items within a module or block, it is an error to introduce an item within a trait or implementation that is a duplicate of another item in the trait or impl in the same namespace.
27
+
26
28
## Pattern binding scopes
27
29
28
30
The scope of a local variable [pattern] binding depends on where it is used:
0 commit comments