mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-17 05:25:37 +03:00
Adjust testcase to cover issue #91, which was actually fixed back in commit f02f9cbf29. Closes #91.
This commit is contained in:
@@ -12,6 +12,7 @@ fn get(int i) -> T {
|
||||
}
|
||||
|
||||
fn take(&T t) {}
|
||||
fn take2(T t) {}
|
||||
}
|
||||
|
||||
fn main() {
|
||||
@@ -23,4 +24,5 @@ fn main() {
|
||||
check (b.get(0) == 1);
|
||||
check (b.get(1) == 2);
|
||||
check (b.get(2) == 3);
|
||||
b.take2(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user