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
Any usage of offset from the ptr module is likely wrong, because it uses size_of instead of nonzero_size_of. The iterators and slice implementations are two examples.
structFoo;let xs = ~[Foo,Foo,Foo];println(fmt!("%?", xs.slice(0,2).to_owned()))// prints `~[]`