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
hello(World{})// I would have to do
hello(&World{})
According to @alexcrichton, this is because the first example automatically coerces the ~World into a &~World, but the second example does not.
The lack of symmetry here is somewhat confusing, and makes it hard to understand (at least at first), how exactly borrowed pointers work with different callers.