rust/src/test/ui/issues/issue-3563-2.rs
2019-07-03 06:30:28 +09:00

15 lines
279 B
Rust

// build-pass (FIXME(62277): could be check-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() {}