You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use std;
import std._vec;
fn inner(vec[int] dummy, int t) -> int {
if (t > 0) {
be inner(dummy, t - 1);
}
else {
ret 0;
}
}
fn main() {
inner(vec(1), 1);
}
gives
rt: fatal, 'leaked memory in rust main loop (1 objects)' failed, rt/memory_region.cpp:99 1 objects
Without the 'dummy' vector it is OK, i.e.
fn inner(int t) -> int {
if (t > 0) {
be inner(t - 1);
}
else {
ret 0;
}
}