Fix alt-pattern-drop's breakage from af2d01e
This commit is contained in:
parent
ae7b0ac390
commit
58a39d1ca3
1 changed files with 3 additions and 1 deletions
|
|
@ -28,5 +28,7 @@ fn main() {
|
|||
foo(s); // ref up then down
|
||||
|
||||
log(debug, sys::refcount(s));
|
||||
assert (sys::refcount(s) == count);
|
||||
let count2 = sys::refcount(s);
|
||||
let _ = sys::refcount(s); // don't get bitten by last-use.
|
||||
assert count == count2;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue