]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/missing-lt-for-hrtb.rs
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / suggestions / missing-lt-for-hrtb.rs
1 struct X<'a>(&'a ());
2 struct S<'a>(&'a dyn Fn(&X) -> &X);
3 //~^ ERROR missing lifetime specifiers
4 struct V<'a>(&'a dyn for<'b> Fn(&X) -> &X);
5 //~^ ERROR missing lifetime specifiers
6
7 fn main() {
8     let x = S(&|x| {
9         println!("hi");
10         x
11     });
12     x.0(&X(&()));
13 }