rust/tests/ui/issues/issue-5439.stderr

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

12 lines
404 B
Plaintext
Raw Normal View History

2018-07-15 21:11:54 +00:00
error[E0560]: struct `Foo` has no field named `nonexistent`
--> $DIR/issue-5439.rs:11:31
2018-07-15 21:11:54 +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
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`.