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