Skip to content

Commit 58a39d1

Browse files
committed
Fix alt-pattern-drop's breakage from af2d01e
1 parent ae7b0ac commit 58a39d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/run-pass/alt-pattern-drop.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,7 @@ fn main() {
2828
foo(s); // ref up then down
2929

3030
log(debug, sys::refcount(s));
31-
assert (sys::refcount(s) == count);
31+
let count2 = sys::refcount(s);
32+
let _ = sys::refcount(s); // don't get bitten by last-use.
33+
assert count == count2;
3234
}

0 commit comments

Comments
 (0)