2024-06-05 16:18:52 -04:00
|
|
|
fn lifetime_in_bounds<'a>(x: &'a ()) -> impl Into<&'a ()> + use<> { x }
|
2024-04-04 14:46:26 -04:00
|
|
|
//~^ ERROR `impl Trait` captures lifetime parameter, but it is not mentioned in `use<...>` precise captures list
|
|
|
|
|
|
2024-06-05 16:18:52 -04:00
|
|
|
fn lifetime_in_hidden<'a>(x: &'a ()) -> impl Sized + use<> { x }
|
2024-04-04 14:46:26 -04:00
|
|
|
//~^ ERROR hidden type for `impl Sized` captures lifetime that does not appear in bounds
|
2024-04-04 12:54:56 -04:00
|
|
|
|
|
|
|
|
fn main() {}
|