Add a regression test for issue-65934

This commit is contained in:
Yuki Okushi 2020-10-09 18:32:42 +09:00
parent 3a4fe97052
commit 83370efdb6

View File

@ -0,0 +1,17 @@
// check-pass
trait Trait {
type Assoc;
}
impl Trait for () {
type Assoc = ();
}
fn unit() -> impl Into<<() as Trait>::Assoc> {}
pub fn ice() {
Into::into(unit());
}
fn main() {}