]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-impl-trait/issue-74761.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / type-alias-impl-trait / issue-74761.rs
CommitLineData
1b1a35ee 1#![feature(member_constraints)]
6a06907d
XL
2// revisions: min_tait full_tait
3#![feature(min_type_alias_impl_trait)]
4#![cfg_attr(full_tait, feature(type_alias_impl_trait))]
5//[full_tait]~^ WARN incomplete
1b1a35ee
XL
6
7pub trait A {
8 type B;
9 fn f(&self) -> Self::B;
10}
11impl<'a, 'b> A for () {
12 //~^ ERROR the lifetime parameter `'a` is not constrained
13 //~| ERROR the lifetime parameter `'b` is not constrained
14 type B = impl core::fmt::Debug;
15
16 fn f(&self) -> Self::B {}
17}
18
19fn main() {}