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
Maybe I'm missing something, but afaik the only way to do this is with automatic coercion at the moment, which does not work here:
traitBar{}implBarforuint{};let x = &mut7u as&mutBar;let y = &x;let z:&Bar = *y;
<anon>:9:97: 9:99 error: cannot borrow an `&mut` in a `&` pointer; try an `&mut` instead
<anon>:9 trait Bar{} impl Bar for uint {}; let x = &mut 7u as &mut Bar; let y = &x; let z: &Bar = *y;
^~
The text was updated successfully, but these errors were encountered:
Maybe I'm missing something, but afaik the only way to do this is with automatic coercion at the moment, which does not work here:
The text was updated successfully, but these errors were encountered: