rust/tests/ui/privacy/issue-75062-fieldless-tuple-struct.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
197 B
Rust
Raw Normal View History

// 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
}