rust/tests/ui/privacy/issue-75062-fieldless-tuple-struct.rs
2023-01-11 09:32:08 +00:00

11 lines
197 B
Rust

// Regression test for issue #75062
// Tests that we don't ICE on a privacy error for a fieldless tuple struct.
mod foo {
struct Bar();
}
fn main() {
foo::Bar(); //~ ERROR tuple struct
}