Files
rust/tests/ui/structs/nonexistent-struct-field-error-5439.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
429 B
Plaintext
Raw Normal View History

2018-07-15 14:11:54 -07:00
error[E0560]: struct `Foo` has no field named `nonexistent`
2025-08-20 14:02:39 -04:00
--> $DIR/nonexistent-struct-field-error-5439.rs:12:31
2018-07-15 14:11:54 -07: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 1 previous error
2018-07-15 14:11:54 -07:00
For more information about this error, try `rustc --explain E0560`.