E0614 - Error codes index
Description: Book listing all Rust error codes

## Keyboard shortcuts

Press `←` or `→` to navigate between chapters

Press `S` or `/` to search in the book

Press `?` to show this help

Press `Esc` to hide this help

# Error code E0614

Attempted to dereference a variable which cannot be dereferenced.

Erroneous code example:

    #![allow(unused)]
    fn main() {
    let y = 0u32;
    *y; // error: type `u32` cannot be dereferenced
    }

Only types implementing `std::ops::Deref` can be dereferenced (such as `&T`). Example:

    #![allow(unused)]
    fn main() {
    let y = 0u32;
    let x = &y;
    // So here, `x` is a `&u32`, so we can dereference it:
    *x; // ok!
    }