#26008 caused a regression (see travis).
Here is the code:
use std::rc::Rc;
let a: Rc<Option<u32>> = Rc::new(Some(5));
let _b: Option<&u32> = a.as_ref();
It works with stable because as_ref() is called on the Option.
But in the nightlies, as_ref() is called on the Rc and I get a &Option<u32> instead of a Option<&u32>.
#26008 caused a regression (see travis).
Here is the code:
It works with stable because
as_ref()is called on theOption.But in the nightlies,
as_ref()is called on theRcand I get a&Option<u32>instead of aOption<&u32>.