Content-Length: 23871 | pFad | https://doc.rust-lang.org/std/string/../error/../string/../../std/../error_codes/./E0422.html

E0422 - Error codes index

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 E0422

An identifier that is neither defined nor a struct was used.

Erroneous code example:

fn main () {
    let x = Foo { x: 1, y: 2 };
}

In this case, Foo is undefined, so it inherently isn’t anything, and definitely not a struct.

fn main () {
    let foo = 1;
    let x = foo { x: 1, y: 2 };
}

In this case, foo is defined, but is not a struct, so Rust can’t use it as one.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/std/string/../error/../string/../../std/../error_codes/./E0422.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy