1 error[E0560]: struct `Foo` has no field named `nonexistent`
2 --> $DIR/issue-5439.rs:11:31
4 LL | return Box::new(Foo { nonexistent: self, foo: i });
5 | ^^^^^^^^^^^ `Foo` does not have this field
7 = note: available fields are: `foo`
9 error: aborting due to previous error
11 For more information about this error, try `rustc --explain E0560`.