Skip to content

Commit 1d42f56

Browse files
committed
fix based on review
1 parent 6d54054 commit 1d42f56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/items/type-aliases.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ type Point = (u8, u8);
2020
let p: Point = (41, 68);
2121
```
2222

23-
A type alias to an tuple-struct type cannot be used to qualify the constructors:
23+
A type alias to a tuple-struct or unit-struct cannot be used to qualify that type's constructor:
2424

25-
```rust
25+
```rust,edition2018,compile_fail
2626
pub struct MyStruct(u32);
2727
2828
pub use self::MyStruct as PubUse;
2929
pub type PubType = MyStruct;
3030
3131
fn main() {
3232
let _ = PubUse(5); // OK
33-
// let _ = PubType(5); // Doesn't work
33+
let _ = PubType(5); // Doesn't work
3434
}
3535
```
3636

0 commit comments

Comments
 (0)