3 ms·
In the article, they already assume reference counting of references, see the previous paragraph: "When the reference goes out of scope, the count is reduced.
by js8 5y ago
In the article, they already assume reference counting of references, see the previous paragraph:
"When the reference goes out of scope, the count is reduced. When an owned value goes out of scope and its reference count is not zero, the program terminates with an error (which I'll refer to as a "panic")."