mod foo {
pub struct Foo {
inner: Field,
}
}
use foo::Foo;
struct Bar {
foo: Foo,
}
fn main(bar: Bar) {}
Happy Case
The above code should probably warn or error. See this comment:
Idea being that we're breaking encapsulation of that private member because a user needs to input it when ABI encoding. If I add a new field then that's now a breaking change.
Problem
Consider this code:
Happy Case
The above code should probably warn or error. See this comment:
Workaround
None
Workaround Description
No response
Additional Context
No response
Project Impact
None
Blocker Context
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response