mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
18 lines
197 B
Rust
18 lines
197 B
Rust
//@ 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() {}
|