]> git.proxmox.com Git - rustc.git/blob - src/test/ui/error-codes/E0616.rs
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / error-codes / E0616.rs
1 mod a {
2 pub struct Foo {
3 x: u32,
4 }
5
6 impl Foo {
7 pub fn new() -> Foo { Foo { x: 0 } }
8 }
9 }
10
11 fn main() {
12 let f = a::Foo::new();
13 f.x; //~ ERROR E0616
14 }