1 error[E0657]: `impl Trait` can only capture lifetimes bound at the fn or impl level
2 --> $DIR/E0657.rs:19:31
4 LL | -> Box<for<'a> Id<impl Lt<'a>>>
7 error[E0657]: `impl Trait` can only capture lifetimes bound at the fn or impl level
8 --> $DIR/E0657.rs:28:35
10 LL | -> Box<for<'a> Id<impl Lt<'a>>>
13 error[E0308]: mismatched types
14 --> $DIR/E0657.rs:22:5
16 LL | () //~ ERROR mismatched types
17 | ^^ expected struct `std::boxed::Box`, found ()
19 = note: expected type `std::boxed::Box<Id<_> + 'static>`
22 error[E0308]: mismatched types
23 --> $DIR/E0657.rs:31:9
25 LL | () //~ ERROR mismatched types
26 | ^^ expected struct `std::boxed::Box`, found ()
28 = note: expected type `std::boxed::Box<Id<_> + 'static>`
31 error: aborting due to 4 previous errors
33 Some errors occurred: E0308, E0657.
34 For more information about an error, try `rustc --explain E0308`.