]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-84592.rs
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / issue-84592.rs
1 /* Checks whether issue #84592 has been resolved. The issue was
2  * that in this example, there are two expected/missing lifetime
3  * parameters with *different spans*, leading to incorrect
4  * suggestions from rustc.
5  */
6
7 struct TwoLifetimes<'x, 'y> {
8     x: &'x (),
9     y: &'y (),
10 }
11
12 fn two_lifetimes_needed(a: &(), b: &()) -> TwoLifetimes<'_, '_> {
13 //~^ ERROR missing lifetime specifiers [E0106]
14     TwoLifetimes { x: &(), y: &() }
15 }
16
17 fn main() {}