]> git.proxmox.com Git - rustc.git/blob - tests/ui/traits/anon-static-method.rs
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / 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 }