]>
git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/traits/anon-trait-static-method.rs
+++ /dev/null
-// run-pass
-struct Foo {
- x: isize
-}
-
-impl Foo {
- pub fn new() -> Foo {
- Foo { x: 3 }
- }
-}
-
-pub fn main() {
- let x = Foo::new();
- println!("{}", x.x);
-}