]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0616.rs
Merge commit '61eb38aeda6cb54b93b872bf503d70084c4d621c' 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 }