]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0616.rs
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[rust.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 }