diff options
Diffstat (limited to 'src/test/auxiliary/anon_trait_static_method_lib.rs')
| -rw-r--r-- | src/test/auxiliary/anon_trait_static_method_lib.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/auxiliary/anon_trait_static_method_lib.rs b/src/test/auxiliary/anon_trait_static_method_lib.rs new file mode 100644 index 00000000000..ec9398dea15 --- /dev/null +++ b/src/test/auxiliary/anon_trait_static_method_lib.rs @@ -0,0 +1,10 @@ +pub struct Foo { + x: int +} + +pub impl Foo { + static fn new() -> Foo { + Foo { x: 3 } + } +} + |
