]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0124.md
Rollup merge of #62514 - stephaneyfx:box-ffi, r=nikomatsakis
[rust.git] / src / librustc_error_codes / error_codes / E0124.md
1 You declared two fields of a struct with the same name. Erroneous code
2 example:
3
4 ```compile_fail,E0124
5 struct Foo {
6     field1: i32,
7     field1: i32, // error: field is already declared
8 }
9 ```
10
11 Please verify that the field names have been correctly spelled. Example:
12
13 ```
14 struct Foo {
15     field1: i32,
16     field2: i32, // ok!
17 }
18 ```