type Foo; impl Foo { fn bar(arg: String) { println arg; } } let bar = Foo().bar; println "got method"; // out: got method bar("arg"); // out: arg