Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 348 Bytes
// build-pass (FIXME(62277): could be check-pass?)
pub trait Reader {}
enum Wrapper<'a> {
WrapReader(&'a (dyn Reader + 'a))
trait Wrap<'a> {
fn wrap(self) -> Wrapper<'a>;
impl<'a, R: Reader> Wrap<'a> for &'a mut R {
fn wrap(self) -> Wrapper<'a> {
Wrapper::WrapReader(self as &'a mut dyn Reader)
pub fn main() {}
You can’t perform that action at this time.