2018-07-15 21:11:54 +00:00
|
|
|
error[E0560]: struct `Foo` has no field named `nonexistent`
|
2022-07-07 02:36:10 +00:00
|
|
|
--> $DIR/issue-5439.rs:11:31
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
2022-07-07 02:36:10 +00:00
|
|
|
LL | return Box::new(Foo { nonexistent: self, foo: i });
|
|
|
|
| ^^^^^^^^^^^ `Foo` does not have this field
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
2023-06-05 20:59:41 +00:00
|
|
|
= note: all struct fields are already assigned
|
2018-07-15 21:11:54 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-07-15 21:11:54 +00:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0560`.
|