I\'m creating factory methods for objects with shared references. The compiler cannot see that the objects from a Vec are not referenced outside the local scope, an
Vec