Fix a typo in test expr-alt-generic-box1.rs
This commit is contained in:
parent
de50efebc2
commit
330fdd2b04
@ -14,7 +14,7 @@ fn test_generic[T](@T expected, &compare[T] eq) {
|
||||
|
||||
fn test_box() {
|
||||
fn compare_box(@bool b1, @bool b2) -> bool {
|
||||
ret *b1 == b2;
|
||||
ret *b1 == *b2;
|
||||
}
|
||||
auto eq = bind compare_box(_, _);
|
||||
test_generic[bool](@true, eq);
|
||||
|
Loading…
x
Reference in New Issue
Block a user