blob: 7b53b20ceffad0e3d82f5d819dea3009269eb2e6 [file] [log] [blame]
//@ edition: 2024
#![feature(rustc_attrs)]
#![feature(type_alias_impl_trait)]
#![rustc_variance_of_opaques]
fn foo(x: &()) -> impl IntoIterator<Item = impl Sized> + use<> {
//~^ ERROR ['_: o]
//~| ERROR ['_: o]
//~| ERROR `impl Trait` captures lifetime parameter
[*x]
}
fn main() {}