Skip to content

Commit a741f68

Browse files
authored
Rollup merge of rust-lang#90115 - samlich:test-issue-78561, r=oli-obk
Add test for issue rust-lang#78561 Adds test for and closes rust-lang#78561 which previously crashed compiler.
2 parents 49f2384 + ab44e46 commit a741f68

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/test/ui/nll/issue-78561.rs

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// check-pass
2+
#![feature(type_alias_impl_trait)]
3+
4+
pub trait Trait {
5+
type A;
6+
7+
fn f() -> Self::A;
8+
}
9+
10+
pub trait Tr2<'a, 'b> {}
11+
12+
pub struct A<T>(T);
13+
pub trait Tr {
14+
type B;
15+
}
16+
17+
impl<'a, 'b, T: Tr<B = dyn Tr2<'a, 'b>>> Trait for A<T> {
18+
type A = impl core::fmt::Debug;
19+
20+
fn f() -> Self::A {}
21+
}
22+
23+
fn main() {}

0 commit comments

Comments
 (0)