]> git.lizzy.rs Git - rust.git/blob - tests/ui/unconstrained-ref.rs
Rollup merge of #106113 - krasimirgg:llvm-16-ext-tyid, r=nikic
[rust.git] / tests / ui / unconstrained-ref.rs
1 struct S<'a, T:'a> {
2     o: &'a Option<T>
3 }
4
5 fn main() {
6     S { o: &None }; //~ ERROR type annotations needed [E0282]
7 }