RosettaCodeData/Task/Repeat/Rust/repeat-4.rust

11 lines
134 B
Plaintext

struct Foo;
impl Foo {
fn associated(x: usize) {
print!("{};", x);
}
}
fn main() {
repeat(Foo::associated, 8);
}