blob: a43043bce9a536199914fc2aa4615b58800b5405 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
use std;
import std::vec;
fn main() {
auto v = [1, 2, 3];
log_err vec::refcount[int](v);
log_err vec::refcount[int](v);
log_err vec::refcount[int](v);
assert (vec::refcount[int](v) == 1u || vec::refcount[int](v) == 2u);
assert (vec::refcount[int](v) == 1u || vec::refcount[int](v) == 2u);
}
|