@@ -5,9 +5,6 @@ a namespace qualifier (`::`). If a path consists of only one component, it may
5
5
refer to either an [ item] or a [ variable] in a local control
6
6
scope. If a path has multiple components, it refers to an item.
7
7
8
- [ item ] : items.html
9
- [ variable ] : variables.html
10
-
11
8
Every item has a _ canonical path_ within its crate, but the path naming an item
12
9
is only meaningful within a given crate. There is no global namespace across
13
10
crates; an item's canonical path merely identifies it within the crate.
19
16
x::y::z;
20
17
```
21
18
22
- Path components are usually [ identifiers] , but they may
23
- also include angle-bracket-enclosed lists of type arguments. In
24
- [ expression] context, the type argument list is given
25
- after a ` :: ` namespace qualifier in order to disambiguate it from a
26
- relational expression involving the less-than symbol (` < ` ). In type
27
- expression context, the final namespace qualifier is omitted.
28
-
29
- [ identifiers ] : identifiers.html
30
- [ expression ] : expressions.html
19
+ Path components are usually [ identifiers] , but they may also include
20
+ angle-bracket-enclosed lists of type arguments. In [ expression] context, the
21
+ type argument list is given after a ` :: ` namespace qualifier in order to
22
+ disambiguate it from a relational expression involving the less-than symbol
23
+ (` < ` ). In type expression context, the final namespace qualifier is omitted.
31
24
32
25
Two examples of paths with type arguments:
33
26
@@ -103,3 +96,8 @@ mod a {
103
96
}
104
97
# fn main () {}
105
98
```
99
+
100
+ [ item ] : items.html
101
+ [ variable ] : variables.html
102
+ [ identifiers ] : identifiers.html
103
+ [ expression ] : expressions.html
0 commit comments