% `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;
```

---

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

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


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

