]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-3154.rs
New upstream version 1.49.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-3154.rs
1 struct Thing<'a, Q:'a> {
2 x: &'a Q
3 }
4
5 fn thing<'a,Q>(x: &Q) -> Thing<'a,Q> {
6 Thing { x: x } //~ ERROR explicit lifetime required in the type of `x` [E0621]
7 }
8
9 fn main() {
10 thing(&());
11 }