]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/anon-static-method.rs
:arrow_up: rust-analyzer
[rust.git] / src / test / ui / traits / anon-static-method.rs
1 // run-pass
2 struct Foo {
3     x: isize
4 }
5
6 impl Foo {
7     pub fn new() -> Foo {
8         Foo { x: 3 }
9     }
10 }
11
12 pub fn main() {
13     let x = Foo::new();
14     println!("{}", x.x);
15 }