mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
10 lines
201 B
Rust
10 lines
201 B
Rust
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 private fields
|
|
}
|