---
title: Compiler Error codes in Rust
timestamp: 2023-12-06T16:30:01
author: szabgab
published: true
description: Rust provides detailed explanations and suggestions for compiler errors, but sometimes further examples can help.
tags:
    - error code
---

The rust compiler provides detailed error messages and then also refers to an error code.
We can use the `rustc --explain` command to show the explanation for each error message or
we can visit the [Rust error codes index](https://doc.rust-lang.org/error_codes/) where we can find
all the codes and the explanations.


On this page I'll list all the codes that were mentioned in the various articles.

* [E0117](https://doc.rust-lang.org/error_codes/E0117.html)
    * [Display a vector of strings](/display-vector-of-strings)
* [E0277](https://doc.rust-lang.org/error_codes/E0277.html)
    * [Display a vector of strings](/display-vector-of-strings)
* [E0308](https://doc.rust-lang.org/error_codes/E0308.html)
    * [Diverging Functions - functions that never return](/diverging-functions)
    * [Generic types for simple function](/generic-types-for-simple-function)
* [E0425](https://doc.rust-lang.org/error_codes/E0425.html)
    * [Rust error message to fix a typo](/error-message-to-fix-typo)
* [E0369](https://doc.rust-lang.org/error_codes/E0369.html)
    * [Generic types for simple function](/generic-types-for-simple-function)


