How do safe Reference and List work together?
From my understanding
Certainly reallocation should have happened here and therefore
Reference is just a pointer in memory with associated lifetime. But I don't understand how the following code doesn't crashCertainly reallocation should have happened here and therefore
element should point to invalid memory location, which should cause segfault. But it prints 0. What am I missing?