We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
struct Foo { f: uint } struct Bar { foo: uint } fn foo(f: Bar) -> Foo { Foo { foo: f.foo } }
foo.rs:11:8: 11:18 error: structure has no field named `foo` foo.rs:11 foo: f.foo ^~~~~~~~~~ error: aborting due to previous error
A different error is given if f has no field foo.
foo