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!
}
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/error_codes/E0614.html