blob: 9c1b7c19e3da325495e5929ec6306a2064171b19 (
plain)
1
2
3
4
5
6
7
8
9
|
//! 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]
}
|