% `type` aliases

There is a new edition of the book and this is an old link.

> Rust provides the ability to declare a _type alias_ with the `type` keyword to give an existing type another name.

```rust
type Kilometers = i32;
```

---

Here are the relevant sections in the new and old books:

* **[In the second edition: Ch 19.04 — Advanced Types, section Type Synonyms][2]**
* [In the first edition: Ch 3.28 — `type` aliases][1]

[1]: first-edition/type-aliases.html
[2]: second-edition/ch19-04-advanced-types.html#creating-type-synonyms-with-type-aliases

