We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
It'd be nice if this would work:
trait Foo {} impl<'self> Foo for &'self str {} let a = ~""; let b = &a as &Foo;
You currently have to manually borrow
trait Foo {} impl<'self> Foo for &'self str {} let a = ~""; let b: &str = a; let b = &b as &Foo;