Add a regression test for issue-65934
This commit is contained in:
parent
3a4fe97052
commit
83370efdb6
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…
Reference in New Issue
Block a user