]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-3154.rs
Require Drop impls to have the same constness on its bounds as the bounds on the...
[rust.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 }