Content-Length: 12727 | pFad | https://doc.rust-lang.org/reference/../std/../std/vec/../sync/../rc/../../error_codes/./E0124.html

E0124 - 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 E0124

A struct was declared with two fields having the same name.

Erroneous code example:

#![allow(unused)]
fn main() {
struct Foo {
    field1: i32,
    field1: i32, // error: field is already declared
}
}

Please verify that the field names have been correctly spelled. Example:

#![allow(unused)]
fn main() {
struct Foo {
    field1: i32,
    field2: i32, // ok!
}
}








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/reference/../std/../std/vec/../sync/../rc/../../error_codes/./E0124.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy