]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/anon-static-method.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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 }