1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//@ run-pass struct Foo; impl Foo { fn first() {} } impl Foo { fn second() {} } pub fn main() { Foo::first(); Foo::second(); }