book/redirects/type-aliases.md

14 lines
382 B
Markdown

% `type` aliases
<small>There is a new edition of the book and this is an old link.</small>
> Rust provides the ability to declare a _type alias_ with the `type` keyword to give an existing type another name.
```rust
type Kilometers = i32;
```
---
You can find the latest version of this information
[here](ch19-04-advanced-types.html#creating-type-synonyms-with-type-aliases).