1 struct Foo; 2 impl Foo { bar()3 fn bar() { foobar::ok(); } 4 } 5 main()6 fn main() { 7 Foo::bar(); 8 } 9