Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- iface fooer {
- fn foo() -> string;
- }
- class foo {
- fn foo() -> string {
- "Hello World"
- }
- new() {}
- }
- fn main() {
- let g: fooer = foo::new();
- println!(g.foo());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement