Skip to content

Commit 83370ef

Browse files
committed
Add a regression test for issue-65934
1 parent 3a4fe97 commit 83370ef

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// check-pass
2+
3+
trait Trait {
4+
type Assoc;
5+
}
6+
7+
impl Trait for () {
8+
type Assoc = ();
9+
}
10+
11+
fn unit() -> impl Into<<() as Trait>::Assoc> {}
12+
13+
pub fn ice() {
14+
Into::into(unit());
15+
}
16+
17+
fn main() {}

0 commit comments

Comments
 (0)