Skip to content

Commit e82b0cd

Browse files
committed
Add a test showing that a similar example compiles
1 parent 7b4f715 commit e82b0cd

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// check-pass
2+
3+
trait Duh {}
4+
5+
impl Duh for i32 {}
6+
7+
trait Trait {
8+
type Assoc: Duh;
9+
}
10+
11+
impl<F: Duh> Trait for F {
12+
type Assoc = F;
13+
}
14+
15+
fn foo() -> impl Trait<Assoc = impl Send> {
16+
42
17+
}
18+
19+
fn main() {
20+
}

0 commit comments

Comments
 (0)