]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/issue-74761-2.rs
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / issue-74761-2.rs
1 #![feature(member_constraints)]
2 #![feature(type_alias_impl_trait)]
3 //~^ WARN incomplete
4
5 pub trait A {
6 type B;
7 fn f(&self) -> Self::B;
8 }
9 impl<'a, 'b> A for () {
10 //~^ ERROR the lifetime parameter `'a` is not constrained
11 //~| ERROR the lifetime parameter `'b` is not constrained
12 type B = impl core::fmt::Debug;
13 //~^ ERROR is unstable
14
15
16 fn f(&self) -> Self::B {}
17 }
18
19 fn main() {}