Skip to content

Commit 5c914e4

Browse files
committed
Add clear methods to the tests that make maps.
1 parent b7a418e commit 5c914e4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/test/run-pass/class-impl-parameterized-iface.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class cat : map<int, bool> {
6060
fn each_value(&&f: fn(&&bool) -> bool) {
6161
for self.each |_k, v| { if !f(v) { break; } cont;};
6262
}
63+
fn clear() { }
6364
}
6465

6566
fn main() {

src/test/run-pass/class-impl-very-parameterized-iface.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class cat<T: copy> : map<int, T> {
8282
fn each_value(&&f: fn(&&T) -> bool) {
8383
for self.each |_k, v| { if !f(v) { break; } cont;};
8484
}
85+
fn clear() { }
8586
}
8687

8788

0 commit comments

Comments
 (0)