]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/type-alias-impl-trait-unconstrained-lifetime.rs
1 // regression test for #74018
3 #![feature(type_alias_impl_trait)]
7 fn into(self) -> Self::Associated
;
10 impl<'a
, I
: Iterator
<Item
= i32>> Trait
for (i32, I
) {
11 //~^ ERROR the lifetime parameter `'a` is not constrained
12 type Associated
= (i32, impl Iterator
<Item
= i32>);
13 fn into(self) -> Self::Associated
{
14 (0_i32, [0_i32].iter().copied())