]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0616.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[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 }