blob: 5ef8542d862e7fc79d39211eefdce1f0cb05fc01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//@ edition: 2024
//@ compile-flags: -Zunstable-options
#![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() {}
|