blob: 9c1b7c19e3da325495e5929ec6306a2064171b19 [file] [log] [blame]
//! Checks that unconstrained `None` is rejected through references and generics
struct S<'a, T: 'a> {
o: &'a Option<T>,
}
fn main() {
S { o: &None }; //~ ERROR type annotations needed [E0282]
}