We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0564cc9 commit d150e88Copy full SHA for d150e88
src/items/type-aliases.md
@@ -25,11 +25,11 @@ A type alias to a tuple-struct or unit-struct cannot be used to qualify that typ
25
```rust,edition2018,compile_fail
26
struct MyStruct(u32);
27
28
-use self::MyStruct as PubUse;
29
-type PubType = MyStruct;
+use MyStruct as UseAlias;
+type TypeAlias = MyStruct;
30
31
-let _ = PubUse(5); // OK
32
-let _ = PubType(5); // Doesn't work
+let _ = UseAlias(5); // OK
+let _ = TypeAlias(5); // Doesn't work
33
```
34
35
[IDENTIFIER]: ../identifiers.md
0 commit comments