blob: 1ecd37de2e14ab85877115e96d7e43e8cc473da5 (
plain)
1
2
3
4
5
6
7
8
9
10
|
pub mod foo {
pub struct Foo {
you_cant_use_this_field: bool,
}
}
fn main() {
foo::Foo {};
//~^ ERROR cannot construct `Foo` with struct literal syntax due to inaccessible fields
}
|