Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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() {}