summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unconstrained-ref.rs
blob: 473ca954b232d32ddb4be38c4fc1963a5415ecca (plain)
1
2
3
4
5
6
7
struct S<'a, T:'a> {
    o: &'a Option<T>
}

fn main() {
    S { o: &None }; //~ ERROR type annotations needed [E0282]
}