summaryrefslogtreecommitdiffstats
path: root/src/doc/book/redirects/type-aliases.md
blob: 85cd4c9ecc665b81280e4b00a421ccba826d71c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
% `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).