]> git.lizzy.rs Git - rust.git/blob - src/test/ui/alloca-from-derived-tydesc.rs
Rollup merge of #61207 - taiki-e:arbitrary_self_types-lifetime-elision-2, r=Centril
[rust.git] / src / test / ui / alloca-from-derived-tydesc.rs
1 // run-pass
2
3 #![allow(non_camel_case_types)]
4 #![allow(dead_code)]
5
6
7 // pretty-expanded FIXME #23616
8
9 enum option<T> { some(T), none, }
10
11 struct R<T> {v: Vec<option<T>> }
12
13 fn f<T>() -> Vec<T> { return Vec::new(); }
14
15 pub fn main() { let mut r: R<isize> = R {v: Vec::new()}; r.v = f(); }