]> git.lizzy.rs Git - rust.git/blob - src/test/ui/type-alias-impl-trait/issue-74761-2.rs
Auto merge of #84039 - jyn514:uplift-atomic-ordering, r=wesleywiser
[rust.git] / src / test / ui / type-alias-impl-trait / issue-74761-2.rs
1 #![feature(member_constraints)]
2 #![feature(type_alias_impl_trait)]
3
4 pub trait A {
5     type B;
6     fn f(&self) -> Self::B;
7 }
8 impl<'a, 'b> A for () {
9     //~^ ERROR the lifetime parameter `'a` is not constrained
10     //~| ERROR the lifetime parameter `'b` is not constrained
11     type B = impl core::fmt::Debug;
12
13     fn f(&self) -> Self::B {}
14 }
15
16 fn main() {}