]> git.proxmox.com Git - rustc.git/blob - tests/ui/privacy/issue-75906.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / privacy / issue-75906.rs
1 mod m {
2 pub struct Foo { x: u8 }
3
4 pub struct Bar(u8);
5 }
6
7 use m::{Foo, Bar};
8
9 fn main() {
10 let x = Foo { x: 12 };
11 let y = Bar(12);
12 //~^ ERROR cannot initialize a tuple struct which contains private fields [E0423]
13 }