Add a regression test for issue-65934
This commit is contained in:
parent
3a4fe97052
commit
83370efdb6
1 changed files with 17 additions and 0 deletions
17
src/test/ui/associated-types/issue-65934.rs
Normal file
17
src/test/ui/associated-types/issue-65934.rs
Normal 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() {}
|
||||
Loading…
Add table
Add a link
Reference in a new issue