rust/tests/ui/resolve/issue-42944.rs
2023-01-11 09:32:08 +00:00

22 lines
355 B
Rust

mod foo {
pub struct Bx(());
}
mod bar {
use foo::Bx;
fn foo() {
Bx(());
//~^ ERROR cannot initialize a tuple struct which contains private fields [E0423]
}
}
mod baz {
fn foo() {
Bx(());
//~^ ERROR cannot find function, tuple struct or tuple variant `Bx` in this scope [E0425]
}
}
fn main() {}