Skip to content

Commit

Permalink
Add test for issue rust-lang#78561
Browse files Browse the repository at this point in the history
  • Loading branch information
samlich committed Oct 21, 2021
1 parent efd0483 commit ab44e46
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/test/ui/nll/issue-78561.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// check-pass
#![feature(type_alias_impl_trait)]

pub trait Trait {
type A;

fn f() -> Self::A;
}

pub trait Tr2<'a, 'b> {}

pub struct A<T>(T);
pub trait Tr {
type B;
}

impl<'a, 'b, T: Tr<B = dyn Tr2<'a, 'b>>> Trait for A<T> {
type A = impl core::fmt::Debug;

fn f() -> Self::A {}
}

fn main() {}

0 comments on commit ab44e46

Please sign in to comment.