15 lines
244 B
Rust
15 lines
244 B
Rust
// compile-pass
|
|
// pretty-expanded FIXME #23616
|
|
|
|
trait Canvas {
|
|
fn add_point(&self, point: &isize);
|
|
fn add_points(&self, shapes: &[isize]) {
|
|
for pt in shapes {
|
|
self.add_point(pt)
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
pub fn main() {}
|